-
Notifications
You must be signed in to change notification settings - Fork 27
101 add antora file structure requirements #102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,4 @@ | ||
| /build/* | ||
| /images/* | ||
| node_modules/ | ||
| .cache/ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| # Antora Playbook | ||
| # https://docs.antora.org/antora/latest/playbook/ | ||
| # | ||
| # Used by the `make antora` target to build the HTML site locally. | ||
| # For CI/CD, a separate playbook in your docs site repository will | ||
| # typically reference this component repository by URL. | ||
|
|
||
| site: | ||
| title: RISC-V Specification | ||
| url: https://docs.riscv.org | ||
| start_page: spec-sample::spec-sample.adoc | ||
|
|
||
| content: | ||
| sources: | ||
| - url: . | ||
| branches: HEAD | ||
|
|
||
| ui: | ||
| bundle: | ||
| url: https://gitlab.com/antora/antora-ui-default/-/jobs/artifacts/HEAD/raw/build/ui-bundle.zip | ||
| snapshot: true | ||
|
|
||
| output: | ||
| dir: ./build/site | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # Antora Component Descriptor | ||
| # https://docs.antora.org/antora/latest/component-version-descriptor/ | ||
| # | ||
| # This file defines the Antora component for this RISC-V specification. | ||
| # Rename `name` and `title` to match your specification. | ||
|
|
||
| name: spec-sample | ||
| title: RISC-V Example Specification (Zexmpl) | ||
| version: ~ | ||
|
|
||
| nav: | ||
| - modules/ROOT/nav.adoc |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../../docs-resources/images |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| // Navigation file for Antora | ||
| // https://docs.antora.org/antora/latest/navigation/ | ||
| // | ||
| // Update this file to reflect your specification's chapter structure. | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this needs a title - the nav title which is sometimes shorter than the full spec title. .title |
||
| * xref:spec-sample.adoc[RISC-V Example Specification] | ||
| ** xref:intro.adoc[Introduction] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. most of the nav files use a flat structure? So they are all just a single * |
||
| ** xref:chapter2.adoc[The Second Chapter] | ||
| ** xref:contributors.adoc[Contributors] | ||
| ** xref:bibliography.adoc[Bibliography] | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| [bibliography] | ||
| == Bibliography | ||
|
|
||
| bibliography::[] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| [[chapter2]] | ||
| == The Second Chapter | ||
|
|
||
| . The first item. | ||
|
|
||
| . The second item. | ||
| + | ||
| .. The first sub item. | ||
|
|
||
| .. The second sub item. | ||
| + | ||
| [CAUTION] | ||
| ==== | ||
| A moment of caution is required for this block of text must be read and apreciated for its importance. | ||
| ==== | ||
|
|
||
| . Yet another item. | ||
|
|
||
| . Again, an item. | ||
|
|
||
| .. A multi-line item. | ||
| + | ||
| This item has multiple lines. | ||
| + | ||
| By multiple lines, this is what we mean. | ||
| + | ||
| Seriously, multiple. | ||
|
|
||
| === An example table | ||
|
|
||
| .Nonsensical table | ||
| [cols="^1,^1,^1,^1,^3,^3",stripes=even,options="header"] | ||
| |=== | ||
| 4+|Letters _and_ bits {set:cellbgcolor:green} 2+|A much longer area | ||
| |L|R|W|X|Quarter 1|Quarter 2 | ||
| |{set:cellbgcolor:!} 0|0|0|0 2+|Rows alternate colors | ||
| |0|0|0|1|Thing 1|Thing 2 | ||
| |1|0|0|0|Thing 3|Thing 4 | ||
| |1|1|1|1 2+|Span Thing 1 and 2 | ||
| |=== | ||
|
|
||
| === Sub section | ||
|
|
||
| Diam donec adipiscing tristique risus indexterm:[risus]. Nisl rhoncus mattis rhoncus urna. Egestas egestas fringilla phasellus faucibus scelerisque eleifend donec pretium vulputate. Porta non pulvinar neque laoreet suspendisse interdum consectetur libero id. Massa vitae tortor condimentum lacinia quis vel. Donec ac odio tempor orci. Mi sit amet mauris commodo quis imperdiet massa tincidunt. Quis enim lobortis scelerisque fermentum dui. Lacus viverra vitae congue eu. Sed faucibus turpis in eu mi bibendum neque. Sit amet porttitor eget dolor. Aliquet eget sit amet tellus cras adipiscing enim. Id cursus metus aliquam eleifend mi. Vestibulum lorem sed risus ultricies tristique nulla aliquet. | ||
|
|
||
| === Yet another subsection | ||
|
|
||
| Quam lacus suspendisse faucibus interdum posuere lorem ipsum. Nulla aliquet enim tortor at auctor urna nunc id cursus. Massa massa ultricies mi quis hendrerit dolor magna. Integer enim neque volutpat ac tincidunt. Dolor magna eget est lorem ipsum dolor. Urna neque viverra justo nec. Neque gravida in fermentum et. Fringilla ut morbi tincidunt augue interdum velit euismod. Dolor sit amet consectetur adipiscing elit. Eu facilisis sed odio morbi. In cursus turpis massa tincidunt dui. Orci indexterm:[orci] phasellus egestas tellus rutrum tellus. Semper eget duis at tellus at urna condimentum. Orci porta non pulvinar neque laoreet suspendisse interdum consectetur. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| == Contributors | ||
|
|
||
| This RISC-V specification has been contributed to directly or indirectly by: | ||
|
|
||
| [%hardbreaks] | ||
| * Author1 <required1@email.com> | ||
| * Author2 <required2@email.com> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| @inproceedings{riscI-isca1981, | ||
| title = {{RISC I}: {A} Reduced Instruction Set {VLSI} Computer}, | ||
| author = {David A. Patterson and Carlo H. S\'{e}quin}, | ||
| booktitle = {ISCA}, | ||
| location = {Minneapolis, Minnesota, USA}, | ||
| pages = {443-458}, | ||
| year = {1981} | ||
| } | ||
|
|
||
| @inproceedings{Katevenis:1983, | ||
| author = {Manolis G.H. Katevenis and Robert W. Sherburne Jr. and David A. Patterson and Carlo H. S\'{e}quin}, | ||
| title = {The {RISC II} micro-architecture}, | ||
| booktitle = {Proceedings VLSI 83 Conference}, | ||
| year = {1983}, | ||
| month = {August} | ||
| } | ||
|
|
||
| @inproceedings{Ungar:1984, | ||
| author = {David Ungar and Ricki Blau and Peter Foley and Dain Samples and David Patterson}, | ||
| title = {Architecture of {SOAR}: {Smalltalk} on a {RISC}}, | ||
| booktitle = {ISCA}, | ||
| address = {Ann Arbor, MI}, | ||
| year = {1984}, | ||
| pages = {188-197} | ||
| } | ||
|
|
||
| @article{spur-jsscc1989, | ||
| author = {David D. Lee and Shing I. Kong and Mark D. Hill and George S. Taylor and David A. Hodges and Randy H. Katz and David A. Patterson}, | ||
| title = {A {VLSI} Chip Set for a Multiprocessor Workstation--{Part I}: An {RISC} Microprocessor with Coprocessor Interface and Support for Symbolic Processing}, | ||
| journal = {IEEE JSSC}, | ||
| year = {1989}, | ||
| volume = {24}, | ||
| number = {6}, | ||
| pages = {1688-1698}, | ||
| month = {December} | ||
| } | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You should add the @ misc example and info about using it rather than @ electric |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| [index] | ||
| == Index | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add the rest of the page, including the riscv image, title, and then what to put on the front page. |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| [[intro]] | ||
| == Introduction | ||
|
|
||
| Lorem ipsum indexterm:[Lorem ipsum] dolor sit amet, consectetur adipiscing elit, sed do *eiusmod tempor* incididunt ut labore et dolore magna aliqua. Felis imperdiet proin fermentum leo vel orci porta. Volutpat lacus laoreet non curabitur indexterm:[curabitur] gravida indexterm:[gravida]. Posuere urna nec tincidunt praesent semper feugiat nibh. Elit ``ullamcorper`` dignissim cras tincidunt lobortis. Malesuada fames ac turpis egestas integer eget. Tristique sollicitudin nibh sit amet commodo. Sed felis eget velit aliquet. Sit amet aliquam id diam maecenas ultricies mi. Consectetur purus ut faucibus pulvinar. Lectus urna duis convallis convallis tellus id. Fermentum iaculis eu non diam. Feugiat in fermentum posuere urna nec tincidunt praesent semper feugiat. Urna nec tincidunt praesent semper feugiat nibh. | ||
|
|
||
| .Nonsensical code | ||
| [source, python] | ||
| ---- | ||
| def banana_apple(): | ||
| x = "banana" | ||
| y = "apple" | ||
| for i in range(len(x)): | ||
| print(x[i], y[i]) | ||
| z = x + y | ||
| return z | ||
|
|
||
| result = banana_apple() | ||
| print("Result:", result) | ||
| ---- | ||
|
|
||
| Commodo viverra maecenas accumsan lacus. Vulputate odio ut enim blandit indexterm:[blandit] volutpat maecenas volutpat blandit. Urna porttitor rhoncus dolor purus non. Tellus mauris a diam maecenas sed. Vitae auctor eu augue ut lectus. Ridiculus mus mauris vitae ultricies leo integer. Consequat semper viverra nam *libero* justo laoreet sit amet. Pellentesque pulvinar pellentesque habitant morbi tristique senectus et netus et. Ac placerat vestibulum lectus mauris ``ultrices`` eros in cursus turpis. Accumsan in nisl nisi scelerisque eu ultrices vitae. Cras ornare arcu dui vivamus. Vitae congue mauris rhoncus aenean. Consequat mauris nunc congue nisi vitae suscipit tellus. Tempus egestas sed sed risus pretium quam vulputate dignissim. Quis varius quam quisque id diam vel. Mattis nunc sed blandit libero volutpat sed cras ornare arcu. Amet mauris commodo quis imperdiet massa tincidunt nunc. | ||
|
|
||
| [NOTE] | ||
| ==== | ||
| The name RISC-V indexterm:[RISC-V] was chosen to represent the fifth major RISC ISA design from UC Berkeley (RISC-I cite:[riscI-isca1981], RISC-II cite:[Katevenis:1983], SOAR cite:[Ungar:1984], and SPUR cite:[spur-jsscc1989] were the first four). We also pun on the use of the Roman numeral "V" to signify "variations" and "vectors", as support for a range of architecture research, including various data-parallel accelerators, is an explicit goal of the ISA design. | ||
| ==== | ||
|
|
||
| === Sub Section of Introduction | ||
|
|
||
| Pellentesque habitant morbi *tristique* senectus et netus et. Aliquam purus sit amet luctus. Odio eu ``feugiat`` pretium nibh ipsum consequat nisl vel. Euismod lacinia at quis risus sed vulputate odio ut. Eu sem integer vitae justo eget. Cursus euismod quis viverra nibh. Tempus egestas sed sed risus. Quis imperdiet massa tincidunt nunc pulvinar. Id venenatis a condimentum vitae sapien pellentesque habitant. | ||
|
|
||
| .Nonsensical wavedrom signals | ||
| [wavedrom, svg] | ||
| .... | ||
| { | ||
| "signal": [ | ||
| { "name": "Clock", "wave": "P.......P" }, | ||
| { "name": "Data", "wave": "x.x..xx.x" }, | ||
| { "name": "Control", "wave": "0.1.01..0" }, | ||
| { "name": "Error", "wave": "zZzZzZzZz" } | ||
| ] | ||
| } | ||
| .... |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,78 @@ | ||
| = RISC-V Example Specification Document (Zexmpl) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we don't use this in antora? do we need both? Is this just to build the PDF? and if so, does this mean that we aren't going to use the antora pdf generator?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if this file is there and isn't included in the nav file, antora kicks up an error about orphan files. |
||
| Authors: Author 1, Author 2 | ||
| include::../../../docs-resources/global-config.adoc[] | ||
| :docgroup: RISC-V Task Group | ||
| :description: RISC-V Example Specification Document (Zexmpl) | ||
| :revdate: 1/2023 | ||
| :revnumber: 1.0 | ||
| :revremark: This document is under development. Expect potential changes. Visit http://riscv.org/spec-state for further details. | ||
| :revinfo: | ||
| :preface-title: Preamble | ||
| :colophon: | ||
| :appendix-caption: Appendix | ||
| // 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: images | ||
| //:srcdir: src | ||
| :bibtex-file: modules/ROOT/pages/example.bib | ||
| :bibtex-order: alphabetical | ||
| :bibtex-style: apa | ||
| :icons: font | ||
| :lang: en | ||
| :listing-caption: Listing | ||
| :sectnums: | ||
| :toc: left | ||
| :toclevels: 4 | ||
| :source-highlighter: pygments | ||
| ifdef::backend-pdf[] | ||
| :source-highlighter: coderay | ||
| endif::[] | ||
| :data-uri: | ||
| :hide-uri-scheme: | ||
| :stem: latexmath | ||
| :footnote: | ||
| :xrefstyle: short | ||
|
|
||
| [preface] | ||
| == List of figures | ||
| list-of::image[hide_empty_section=true, enhanced_rendering=true] | ||
|
|
||
| [preface] | ||
| == List of tables | ||
| list-of::table[hide_empty_section=true, enhanced_rendering=true] | ||
|
|
||
| [preface] | ||
| == List of listings | ||
| list-of::listing[hide_empty_section=true, enhanced_rendering=true] | ||
|
|
||
| [WARNING] | ||
| .This document is in the link:http://riscv.org/spec-state[Development state] | ||
| ==== | ||
| Expect potential changes. This draft specification is likely to evolve before | ||
| it is accepted as a standard. Implementations based on this draft | ||
| may not conform to the future standard. | ||
| ==== | ||
|
|
||
| [preface] | ||
| == Copyright and license information | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Split this out into a new page for antora. All the rest are set up like this |
||
| This specification 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/. | ||
|
|
||
| Copyright 2025 by RISC-V International. | ||
|
|
||
| [preface] | ||
| include::contributors.adoc[] | ||
|
|
||
| include::intro.adoc[] | ||
| include::chapter2.adoc[] | ||
|
|
||
| // The index must precede the bibliography | ||
| include::index.adoc[] | ||
| include::bibliography.adoc[] | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this UI bundle was unfound? Maybe https://gitlab.com/antora/antora-ui-default/-/jobs/artifacts/HEAD/raw/build/ui-bundle.zip?job=bundle-stable is what I found.