File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 11[book]
2- title = " Nix Reference Manual"
2+ title = "Nix @version@ Reference Manual"
33src = "source"
44
55[output.html]
Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ manual = custom_target(
8383 '''
8484 @0@ @INPUT0@ @CURRENT_SOURCE_DIR@ > @DEPFILE@
8585 @0@ @INPUT1@ summary @2@ < @CURRENT_SOURCE_DIR@/source/SUMMARY.md.in > @2@/source/SUMMARY.md
86+ sed -e 's|@version@|@3@|g' < @INPUT2@ > @2@/book.toml
8687 rsync -r --include='*.md' @CURRENT_SOURCE_DIR@/ @2@/
8788 (cd @2@; RUST_LOG=warn @1@ build -d @2@ 3>&2 2>&1 1>&3) | { grep -Fv "because fragment resolution isn't implemented" || :; } 3>&2 2>&1 1>&3
8889 rm -rf @2@/manual
@@ -92,12 +93,13 @@ manual = custom_target(
9293 python.full_path(),
9394 mdbook.full_path(),
9495 meson .current_build_dir(),
96+ meson .project_version(),
9597 ),
9698 ],
9799 input : [
98100 generate_manual_deps,
99101 ' substitute.py' ,
100- ' book.toml' ,
102+ ' book.toml.in ' ,
101103 ' anchors.jq' ,
102104 ' custom.css' ,
103105 nix3_cli_files,
You can’t perform that action at this time.
0 commit comments