forked from mirrors/nixpkgs
nixos docs: Move generated XML in to a specific subdirectory to allow easier hacking
This commit is contained in:
parent
68d48cecf6
commit
59f8b1e844
|
@ -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>
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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" />
|
||||
|
|
Loading…
Reference in a new issue