Skip to content

Commit

Permalink
Adjust repo layout for fit the format of docs-spec-template
Browse files Browse the repository at this point in the history
  • Loading branch information
kito-cheng committed Mar 4, 2022
1 parent fdcc856 commit 98dd6e9
Show file tree
Hide file tree
Showing 35 changed files with 46 additions and 360 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "docs-resources"]
path = docs-resources
url = https://github.com/riscv/docs-resources.git
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ all: $(NAME).pdf
clean:
rm -f $(NAME).pdf

$(NAME).pdf: $(NAME).adoc $(wildcard *.adoc) resources/themes/risc-v_spec-pdf.yml
$(NAME).pdf: $(NAME).adoc $(wildcard *.adoc) docs-resources/themes/riscv-pdf.yml
asciidoctor-pdf \
-a compress \
-a date="$(DATE)" \
-a monthyear="$(MONTHYEAR)" \
-a pdf-style=resources/themes/risc-v_spec-pdf.yml \
-a pdf-fontsdir=resources/fonts \
-a pdf-style=docs-resources/themes/riscv-pdf.yml \
-a pdf-fontsdir=docs-resources/fonts \
-v \
$< -o $@
1 change: 1 addition & 0 deletions docs-resources
Submodule docs-resources added at 481975
Binary file removed images/draft.png
Binary file not shown.
Binary file removed images/risc-v_logo.png
Binary file not shown.
13 changes: 9 additions & 4 deletions preamble.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ Hsiangkai Wang,
Andrew Waterman,
Jim Wilson

It is licensed under the Creative Commons Attribution 4.0 International
License (CC-BY 4.0). The full license text is available at
https://creativecommons.org/licenses/by/4.0/.

Please cite as: `RISC-V ABIs Specification,
Document Version {refrev}', Editors
Kito Cheng and Jessica Clarke, RISC-V International, {monthyear}.
Expand All @@ -49,3 +45,12 @@ technical sense of the word (but not necessarily in the official RISC-V
International specification state meaning), with the official specification
state being an indicator of the completeness, clarity and general editorial
quality of the specification.
[NOTE]
.Copyright and licensure:
====
This work is licensed under a
link:http://creativecommons.org/licenses/by/4.0/[Creative Commons Attribution 4.0 International License].
This work is Copyright 2022 by RISC-V International.
====
56 changes: 30 additions & 26 deletions prelude.adoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,32 @@
:company: RISC-V.org
// These variables should not require customization
:company: RISC-V
:url-riscv: http://riscv.org
:doctype: book
:preface-title: Preamble
:colophon:
:appendix-caption: Appendix
:title-logo-image: image:docs-resources/images/risc-v_logo.svg[pdfwidth=3.25in,align=center]
// Settings:
:experimental:
:reproducible:
:WaveDromEditorApp: wavedrom-cli
:icons: font
:lang: en
:listing-caption: Listing
:sectnums:
:sectnumlevels: 5
:toclevels: 5
:toc: left
:source-highlighter: pygments
ifdef::backend-pdf[]
:source-highlighter: coderay
endif::[]
:data-uri:
:hide-uri-scheme:
:stem: latexmath
:footnote:
:xrefstyle: short

// These are the definitions from docs-template:
//
// development: Assume everything can change
Expand Down Expand Up @@ -35,30 +63,6 @@ ifeval::["{revlifecycle}" == "ratified"]
:revremark: Ratified
:refrev: {revnumber}
endif::[]
:url-riscv: http://riscv.org
:doctype: book
:preface-title: Preamble
:colophon:
:appendix-caption: Appendix
:imagesdir: images
:title-logo-image: image:risc-v_logo.png[pdfwidth=3.25in,align=center]
//:back-cover-image: image:backpage.png[opacity=25%]
:experimental:
:reproducible:
:icons: font
:lang: en
:listing-caption: Listing
:sectnums:
:toc: left
:toclevels: 3
:source-highlighter: pygments
ifdef::backend-pdf[]
:source-highlighter: coderay
endif::[]
:data-uri:
:hide-uri-scheme:
:stem: latexmath
:footnote:
:xrefstyle: short


include::preamble.adoc[]
Binary file removed resources/fonts/DroidSans-Bold.ttf
Binary file not shown.
Binary file removed resources/fonts/DroidSans.ttf
Binary file not shown.
Binary file removed resources/fonts/cmunbbx.ttf
Binary file not shown.
Binary file removed resources/fonts/cmunbmo.ttf
Binary file not shown.
Binary file removed resources/fonts/cmunbmr.ttf
Binary file not shown.
Binary file removed resources/fonts/cmunbso.ttf
Binary file not shown.
Binary file removed resources/fonts/cmunbtl.ttf
Binary file not shown.
Binary file removed resources/fonts/cmunbto.ttf
Binary file not shown.
Binary file removed resources/fonts/cmunbxo.ttf
Binary file not shown.
Binary file removed resources/fonts/cmunsi.ttf
Binary file not shown.
Binary file removed resources/fonts/cmunso.ttf
Binary file not shown.
Binary file removed resources/fonts/cmunss.ttf
Binary file not shown.
Binary file removed resources/fonts/cmunsx.ttf
Binary file not shown.
Binary file removed resources/fonts/droid-sans-fallback.ttf
Binary file not shown.
Binary file removed resources/fonts/mplus-1mn-bold.ttf
Binary file not shown.
Binary file removed resources/fonts/mplus-1mn-light.ttf
Binary file not shown.
Binary file removed resources/fonts/mplus-1mn-medium.ttf
Binary file not shown.
Binary file removed resources/fonts/mplus-1mn-regular.ttf
Binary file not shown.
Binary file removed resources/fonts/mplus-1mn-thin.ttf
Binary file not shown.
Binary file removed resources/fonts/mplus-1p-black.ttf
Binary file not shown.
Binary file removed resources/fonts/mplus-1p-bold.ttf
Binary file not shown.
Binary file removed resources/fonts/mplus-1p-heavy.ttf
Binary file not shown.
Binary file removed resources/fonts/mplus-1p-light.ttf
Binary file not shown.
Binary file removed resources/fonts/mplus-1p-medium.ttf
Binary file not shown.
Binary file removed resources/fonts/mplus-1p-regular-fallback.ttf
Binary file not shown.
Binary file removed resources/fonts/mplus-1p-regular.ttf
Binary file not shown.
Binary file removed resources/fonts/mplus-1p-thin.ttf
Binary file not shown.
Loading

0 comments on commit 98dd6e9

Please sign in to comment.