Skip to content

Commit e2ce367

Browse files
authored
Merge pull request riscv#1841 from RISC-V-Certification-Steering-Committee/main
Changes to support building priv & unpriv as adoc "parts" in a larger adoc "book"
2 parents 6f69218 + 0cd3b44 commit e2ce367

File tree

4 files changed

+18
-5
lines changed

4 files changed

+18
-5
lines changed

src/colophon.adoc

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
[colophon]
2-
= Preface
3-
2+
== Preface
3+
// Had to make the above a level 1 heading (two equals signs) to avoid error when building
4+
// the ISA manual as a book with other "parts". This is opposite to what the adoc says to do
5+
// but otherwise asciidoctor creates the error messsage:
6+
//
7+
// asciidoctor: ERROR: ext/riscv-isa-manual/src/colophon.adoc: line 2: invalid part, must have at least one section (e.g., chapter, appendix, etc.)
8+
//
9+
// See asciidoctor doc which seems wrong: https://docs.asciidoctor.org/asciidoc/latest/sections/colophon/
410

511
This document describes the RISC-V unprivileged architecture.
612

src/priv-preface.adoc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
[colophon]
2-
= Preface
2+
== Preface
3+
// Had to make the above a level 1 heading (two equals signs) to avoid error when building
4+
// the ISA manual as a book with other "parts". This is opposite to what the adoc says to do
5+
// but otherwise asciidoctor creates the error messsage:
6+
//
7+
// asciidoctor: ERROR: ext/riscv-isa-manual/src/priv-preface.adoc: line 2: invalid part, must have at least one section (e.g., chapter, appendix, etc.)
8+
//
9+
// See asciidoctor doc which seems wrong: https://docs.asciidoctor.org/asciidoc/latest/sections/colophon/
310

411
[.big]*_Preface to Version 20241101_*
512

src/riscv-privileged.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[[risc-v-isa]]
1+
[[manual:priv,RISC-V ISA Manual Volume II: Privileged Architecture]]
22
= The RISC-V Instruction Set Manual: Volume II: Privileged Architecture
33
include::../docs-resources/global-config.adoc[]
44
:description: Volume II - Privileged Architecture

src/riscv-unprivileged.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[[risc-v-isa]]
1+
[[manual:unpriv,RISC-V ISA Manual Volume I: Unprivileged Architecture]]
22
= The RISC-V Instruction Set Manual Volume I: Unprivileged Architecture
33
include::../docs-resources/global-config.adoc[]
44
:description: Unprivileged Architecture

0 commit comments

Comments
 (0)