Include the NixOS version in the manual
In particular, this will make it clear what version of the manual is shown at http://nixos.org/nixos/manual/.
This commit is contained in:
parent
dac108f51b
commit
9ef07d859b
|
@ -1,6 +1,4 @@
|
||||||
{ pkgs, options
|
{ pkgs, options, version, revision }:
|
||||||
, revision ? "master"
|
|
||||||
}:
|
|
||||||
|
|
||||||
with pkgs.lib;
|
with pkgs.lib;
|
||||||
|
|
||||||
|
@ -60,6 +58,7 @@ in rec {
|
||||||
buildCommand = ''
|
buildCommand = ''
|
||||||
ln -s $sources/*.xml . # */
|
ln -s $sources/*.xml . # */
|
||||||
ln -s ${optionsDocBook} options-db.xml
|
ln -s ${optionsDocBook} options-db.xml
|
||||||
|
echo "${version}" > version
|
||||||
|
|
||||||
# Check the validity of the manual sources.
|
# Check the validity of the manual sources.
|
||||||
xmllint --noout --nonet --xinclude --noxincludenode \
|
xmllint --noout --nonet --xinclude --noxincludenode \
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
<info>
|
<info>
|
||||||
|
|
||||||
<title>NixOS Manual</title>
|
<title>NixOS Manual</title>
|
||||||
|
<subtitle>Version <xi:include href="version" parse="text" /></subtitle>
|
||||||
|
|
||||||
<author>
|
<author>
|
||||||
<personname>
|
<personname>
|
||||||
|
|
|
@ -23,6 +23,7 @@ let
|
||||||
|
|
||||||
manual = import ../../../doc/manual {
|
manual = import ../../../doc/manual {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
|
version = config.system.nixosVersion;
|
||||||
revision = config.system.nixosRevision;
|
revision = config.system.nixosRevision;
|
||||||
options = eval.options;
|
options = eval.options;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue