Skip to content

Commit

Permalink
move asciidoc source files to src; build docs in build dir
Browse files Browse the repository at this point in the history
relates to #25

Signed-off-by: Kevin Broch <[email protected]>
  • Loading branch information
kbroch-rivosinc committed Jan 23, 2024
1 parent 930fb52 commit a83571b
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
*.pdf
/build/*
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ REVMARK ?= Draft
DOCKER_RUN := docker run --rm -v ${PWD}:/build -w /build \
riscvintl/riscv-docs-base-container-image:latest

HEADER_SOURCE := header.adoc
PDF_RESULT := spec-sample.pdf
HTML_RESULT := spec-sample.html
SRC_DIR := src
BUILD_DIR := build
HEADER_SOURCE := $(SRC_DIR)/header.adoc
PDF_RESULT := $(BUILD_DIR)/spec-sample.pdf
HTML_RESULT := $(BUILD_DIR)/spec-sample.html

ASCIIDOCTOR_PDF := asciidoctor-pdf
ASCIIDOCTOR_HTML := asciidoctor
Expand Down Expand Up @@ -65,5 +67,5 @@ build-no-container:

clean:
@echo "Cleaning up generated files..."
rm -f $(PDF_RESULT) $(HTML_RESULT)
rm -rf $(BUILD_DIR)
@echo "Cleanup completed."
Binary file removed images/risc-v_logo.png
Binary file not shown.
2 changes: 1 addition & 1 deletion readme.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This work is licensed under a Creative Commons Attribution 4.0 International Lic

== Contributors

The list of contributors to this specification is maintained in the link:contributors.adoc[contributors] file.
The list of contributors to this specification is maintained in the link:src/contributors.adoc[contributors] file.

For guidelines on how to contribute, refer to the link:CONTRIBUTING.md[CONTRIBUTING] file.

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 4 additions & 3 deletions header.adoc → src/header.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ Authors: Author 1, Author 2
:preface-title: Preamble
:colophon:
:appendix-caption: Appendix
:imagesdir: docs-resources/images
:title-logo-image: image:risc-v_logo.png[pdfwidth=3.25in,align=center]
// https://docs.asciidoctor.org/asciidoc/latest/macros/images-directory/
:imagesdir: ../docs-resources/images
:title-logo-image: image:risc-v_logo.png["RISC-V International Logo",pdfwidth=3.25in,align=center]
// Settings:
:experimental:
:reproducible:
//:WaveDromEditorApp: app/wavedrom-editor.app
:imagesoutdir: docs-resources/images
:imagesoutdir: ../build/images
:bibtex-file: example.bib
:bibtex-order: alphabetical
:bibtex-style: apa
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit a83571b

Please sign in to comment.