use version file in generated manual (#362)

This commit is contained in:
Pierre Penninckx 2024-11-22 23:35:34 +01:00 committed by GitHub
parent ec80a93e05
commit 7a10a805c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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.load.js
substituteInPlace ./manual.md \
--replace \
'@VERSION@' \
${builtins.readFile ../VERSION}
substituteInPlace ./options.md \
--replace \
'@OPTIONS_JSON@' \

View file

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