docs: skip do custom include processing for mdbook

mdbook already does include processing of its own, and the custom
processing code has always admitted as much. we don't need it for
the mdbook build at this point if we run our preprocessors in the
right order, and maybe we can even have mdbook to return complete
pages to us that we only have to pass to lowdown without any more
preprocessing of our own.

Change-Id: Icd978acbc3b1e215fee8f062c53ab2cb2a222ab1
This commit is contained in:
eldritch horrors 2024-04-08 04:55:18 +02:00
parent bf55503542
commit be39a9fd82
2 changed files with 1 additions and 3 deletions

View file

@ -15,6 +15,7 @@ command = "python3 doc/manual/docroot.py"
# the link preprocessor gets its hands on this book, but nope it's actually # the link preprocessor gets its hands on this book, but nope it's actually
# the opposite. # the opposite.
after = ["links"] after = ["links"]
before = ["anchors"]
[preprocessor.anchors] [preprocessor.anchors]
renderers = ["html"] renderers = ["html"]

View file

@ -163,9 +163,6 @@ $(docdir)/manual/index.html: $(MANUAL_SRCS) $(d)/book.toml $(d)/anchors.jq $(d)/
$(trace-gen) \ $(trace-gen) \
tmp="$$(mktemp -d)"; \ tmp="$$(mktemp -d)"; \
cp -r doc/manual "$$tmp"; \ cp -r doc/manual "$$tmp"; \
find "$$tmp" -name '*.md' | while read -r file; do \
doc/manual/process-includes.sh $$file $$file; \
done; \
set -euo pipefail; \ set -euo pipefail; \
RUST_LOG=warn mdbook build "$$tmp/manual" -d $(DESTDIR)$(docdir)/manual.tmp 2>&1 \ RUST_LOG=warn mdbook build "$$tmp/manual" -d $(DESTDIR)$(docdir)/manual.tmp 2>&1 \
| { grep -Fv "because fragment resolution isn't implemented" || :; }; \ | { grep -Fv "because fragment resolution isn't implemented" || :; }; \