add appendices for modules/service/outputs generated doc

This commit is contained in:
Daniel Barlow
2025-04-08 21:25:54 +01:00
parent eb16a35ff3
commit 2f092e126a
4 changed files with 27 additions and 6 deletions

View File

@@ -5,15 +5,15 @@ DOCS=\
index \
installation \
intro \
modules \
outputs \
hardware \
module-options-generated.inc \
outputs-generated.inc \
tutorial
%.adoc: %.rst
pandoc -f rst -t asciidoc $< | sed -E -e 's/^(=*) /=\1 /g' > $@
hardware.adoc: hardware.nix
pandoc -f rst -t asciidoc -o $@ hardware.rst
# sections in an appendix need to start at ===
sed -E -i.bak -e 's/^(=*) /=\1 /g' hardware.adoc
html: Makefile $(patsubst %,%.adoc,$(DOCS))
asciidoctor -D _build -d book index.adoc