Skip to content

Commit 2167cf0

Browse files
committed
Control spec file order with an explicit list
The previous method of ordering specification chapters relied on numeric prefixes in the filenames. This was brittle and made reordering or inserting new sections difficult, as it required renaming multiple files. This change removes the numeric prefixes from the markdown filenames. A new `spec_files.txt` file is introduced to explicitly define the order of the files for document generation. The Makefile is updated to use this file list instead of a glob pattern, making the build process more robust and easier to maintain. Signed-off-by: Simo Sorce <[email protected]>
1 parent e8a56b8 commit 2167cf0

File tree

119 files changed

+122
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+122
-3
lines changed

working/doc/spec/Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
INPUT_FILES = $(shell cat spec_files.txt)
2+
13
all: docs
24

35
.PHONY: all build html pdf
@@ -13,7 +15,7 @@ html:
1315
--variable toc-title:"Table of Contents" \
1416
--highlight-style code.theme \
1517
-o pkcs-spec-v3.3.html \
16-
[0-9]*md
18+
$(INPUT_FILES)
1719

1820
pdf:
1921
pandoc -s \
@@ -31,7 +33,7 @@ pdf:
3133
--pdf-engine=lualatex \
3234
--highlight-style code.theme \
3335
-o pkcs-spec-v3.3.pdf \
34-
[0-9]*md
36+
$(INPUT_FILES)
3537

3638
latex:
3739
pandoc -s \
@@ -49,6 +51,6 @@ latex:
4951
--pdf-engine=lualatex \
5052
--highlight-style code.theme \
5153
-o pkcs-spec-v3.3.latex \
52-
[0-9]*md
54+
$(INPUT_FILES)
5355
clean:
5456
-rm -rf *.html *.pdf *.latex

0 commit comments

Comments
 (0)