mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos docs: Move generated XML in to a specific subdirectory to allow easier hacking
This commit is contained in:
parent
68d48cecf6
commit
59f8b1e844
4 changed files with 12 additions and 8 deletions
|
@ -25,9 +25,8 @@ effect after you run <command>nixos-rebuild</command>.</para>
|
||||||
<xi:include href="networking.xml" />
|
<xi:include href="networking.xml" />
|
||||||
<xi:include href="linux-kernel.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 -->
|
<!-- Apache; libvirtd virtualisation -->
|
||||||
|
|
||||||
</part>
|
</part>
|
||||||
|
|
||||||
|
|
|
@ -102,13 +102,18 @@ let
|
||||||
</section>
|
</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 =
|
copySources =
|
||||||
''
|
''
|
||||||
cp -prd $sources/* . # */
|
cp -prd $sources/* . # */
|
||||||
|
ln -s ${generatedSources} ./generated
|
||||||
chmod -R u+w .
|
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"
|
toc = builtins.toFile "toc.xml"
|
||||||
|
|
|
@ -31,7 +31,7 @@ therein.</para>
|
||||||
<para>You can use the following options in
|
<para>You can use the following options in
|
||||||
<filename>configuration.nix</filename>.</para>
|
<filename>configuration.nix</filename>.</para>
|
||||||
|
|
||||||
<xi:include href="options-db.xml" />
|
<xi:include href="./generated/options-db.xml" />
|
||||||
|
|
||||||
</refsection>
|
</refsection>
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
<info>
|
<info>
|
||||||
<title>NixOS Manual</title>
|
<title>NixOS Manual</title>
|
||||||
<subtitle>Version <xi:include href="version" parse="text" /></subtitle>
|
<subtitle>Version <xi:include href="./generated/version" parse="text" /></subtitle>
|
||||||
</info>
|
</info>
|
||||||
|
|
||||||
<preface>
|
<preface>
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
|
|
||||||
<appendix xml:id="ch-options">
|
<appendix xml:id="ch-options">
|
||||||
<title>Configuration Options</title>
|
<title>Configuration Options</title>
|
||||||
<xi:include href="options-db.xml" />
|
<xi:include href="./generated/options-db.xml" />
|
||||||
</appendix>
|
</appendix>
|
||||||
|
|
||||||
<xi:include href="release-notes/release-notes.xml" />
|
<xi:include href="release-notes/release-notes.xml" />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue