From 5a3eb7ab5f5a00874bd289f5f6f01440062b6d03 Mon Sep 17 00:00:00 2001 From: ibizaman Date: Fri, 22 Nov 2024 23:27:21 +0100 Subject: [PATCH] use version file in generated manual --- docs/default.nix | 5 +++++ docs/manual.md | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/default.nix b/docs/default.nix index 1e3594ec..f66962af 100644 --- a/docs/default.nix +++ b/docs/default.nix @@ -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@' \ diff --git a/docs/manual.md b/docs/manual.md index 08a9bb3f..43757afb 100644 --- a/docs/manual.md +++ b/docs/manual.md @@ -1,6 +1,6 @@ # Self Host Blocks Manual {#self-host-blocks-manual} -## Version 0.0.1 +## Version @VERSION@ ```{=include=} preface