Skip to content

Commit c8a443d

Browse files
authored
Merge pull request #12546 from DeterminateSystems/version-in-manual
Include the Nix version in the title of the manual
2 parents 1f98abe + 779bb3b commit c8a443d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[book]
2-
title = "Nix Reference Manual"
2+
title = "Nix @version@ Reference Manual"
33
src = "source"
44

55
[output.html]

doc/manual/meson.build

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)