use version file in generated manual

This commit is contained in:
ibizaman 2024-11-22 23:27:21 +01:00
parent ec80a93e05
commit 5a3eb7ab5f
2 changed files with 6 additions and 1 deletions

View file

@ -120,6 +120,11 @@ in stdenv.mkDerivation {
${nmdsrc}/static/highlightjs/highlight.min.js \ ${nmdsrc}/static/highlightjs/highlight.min.js \
${nmdsrc}/static/highlightjs/highlight.load.js ${nmdsrc}/static/highlightjs/highlight.load.js
substituteInPlace ./manual.md \
--replace \
'@VERSION@' \
${builtins.readFile ../VERSION}
substituteInPlace ./options.md \ substituteInPlace ./options.md \
--replace \ --replace \
'@OPTIONS_JSON@' \ '@OPTIONS_JSON@' \

View file

@ -1,6 +1,6 @@
# Self Host Blocks Manual {#self-host-blocks-manual} # Self Host Blocks Manual {#self-host-blocks-manual}
## Version 0.0.1 ## Version @VERSION@
```{=include=} preface ```{=include=} preface