1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 10:41:16 +02:00

Merge pull request #12546 from DeterminateSystems/version-in-manual

Include the Nix version in the title of the manual
This commit is contained in:
John Ericson 2025-02-24 13:11:30 -05:00 committed by GitHub
commit c8a443df50
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -1,5 +1,5 @@
[book] [book]
title = "Nix Reference Manual" title = "Nix @version@ Reference Manual"
src = "source" src = "source"
[output.html] [output.html]

View file

@ -83,6 +83,7 @@ manual = custom_target(
''' '''
@0@ @INPUT0@ @CURRENT_SOURCE_DIR@ > @DEPFILE@ @0@ @INPUT0@ @CURRENT_SOURCE_DIR@ > @DEPFILE@
@0@ @INPUT1@ summary @2@ < @CURRENT_SOURCE_DIR@/source/SUMMARY.md.in > @2@/source/SUMMARY.md @0@ @INPUT1@ summary @2@ < @CURRENT_SOURCE_DIR@/source/SUMMARY.md.in > @2@/source/SUMMARY.md
sed -e 's|@version@|@3@|g' < @INPUT2@ > @2@/book.toml
rsync -r --include='*.md' @CURRENT_SOURCE_DIR@/ @2@/ rsync -r --include='*.md' @CURRENT_SOURCE_DIR@/ @2@/
(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 (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
rm -rf @2@/manual rm -rf @2@/manual
@ -92,12 +93,13 @@ manual = custom_target(
python.full_path(), python.full_path(),
mdbook.full_path(), mdbook.full_path(),
meson.current_build_dir(), meson.current_build_dir(),
meson.project_version(),
), ),
], ],
input : [ input : [
generate_manual_deps, generate_manual_deps,
'substitute.py', 'substitute.py',
'book.toml', 'book.toml.in',
'anchors.jq', 'anchors.jq',
'custom.css', 'custom.css',
nix3_cli_files, nix3_cli_files,