3
0
Fork 0
forked from mirrors/nixpkgs

nixos docs: Move generated XML in to a specific subdirectory to allow easier hacking

This commit is contained in:
Graham Christensen 2018-04-27 22:44:25 -04:00
parent 68d48cecf6
commit 59f8b1e844
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C
4 changed files with 12 additions and 8 deletions

View file

@ -25,9 +25,8 @@ effect after you run <command>nixos-rebuild</command>.</para>
<xi:include href="networking.xml" />
<xi:include href="linux-kernel.xml" />
<xi:include href="modules.xml" xpointer="xpointer(//section[@id='modules']/*)" />
<xi:include href="../generated/modules.xml" xpointer="xpointer(//section[@id='modules']/*)" />
<!-- Apache; libvirtd virtualisation -->
</part>

View file

@ -102,13 +102,18 @@ let
</section>
'';
generatedSources = runCommand "generated-docbook" {} ''
mkdir $out
ln -s ${modulesDoc} $out/modules.xml
ln -s ${optionsDocBook} $out/options-db.xml
printf "%s" "${version}" > $out/version
'';
copySources =
''
cp -prd $sources/* . # */
ln -s ${generatedSources} ./generated
chmod -R u+w .
ln -s ${modulesDoc} configuration/modules.xml
ln -s ${optionsDocBook} options-db.xml
printf "%s" "${version}" > version
'';
toc = builtins.toFile "toc.xml"

View file

@ -31,7 +31,7 @@ therein.</para>
<para>You can use the following options in
<filename>configuration.nix</filename>.</para>
<xi:include href="options-db.xml" />
<xi:include href="./generated/options-db.xml" />
</refsection>

View file

@ -6,7 +6,7 @@
<info>
<title>NixOS Manual</title>
<subtitle>Version <xi:include href="version" parse="text" /></subtitle>
<subtitle>Version <xi:include href="./generated/version" parse="text" /></subtitle>
</info>
<preface>
@ -39,7 +39,7 @@
<appendix xml:id="ch-options">
<title>Configuration Options</title>
<xi:include href="options-db.xml" />
<xi:include href="./generated/options-db.xml" />
</appendix>
<xi:include href="release-notes/release-notes.xml" />