* Validate the manual against the DocBook 5 RelaxNG schema.
svn path=/nixos/trunk/; revision=17643
This commit is contained in:
parent
e4c27acde3
commit
4452096f3e
|
@ -41,7 +41,7 @@ let
|
||||||
|
|
||||||
sources = pkgs.lib.sourceFilesBySuffices ./. [".xml"];
|
sources = pkgs.lib.sourceFilesBySuffices ./. [".xml"];
|
||||||
|
|
||||||
buildInputs = [pkgs.libxslt];
|
buildInputs = [pkgs.libxml2New pkgs.libxslt];
|
||||||
|
|
||||||
xsltFlags = ''
|
xsltFlags = ''
|
||||||
--param section.autolabel 1
|
--param section.autolabel 1
|
||||||
|
@ -58,6 +58,12 @@ let
|
||||||
ln -s $sources/*.xml . # */
|
ln -s $sources/*.xml . # */
|
||||||
ln -s ${optionsDocBook} options-db.xml
|
ln -s ${optionsDocBook} options-db.xml
|
||||||
|
|
||||||
|
# Check the validity of the manual sources.
|
||||||
|
xmllint --noout --nonet --xinclude --noxincludenode \
|
||||||
|
--relaxng ${pkgs.docbook5}/xml/rng/docbook/docbook.rng \
|
||||||
|
manual.xml
|
||||||
|
|
||||||
|
# Generate the HTML manual.
|
||||||
dst=$out/share/doc/nixos
|
dst=$out/share/doc/nixos
|
||||||
ensureDir $dst
|
ensureDir $dst
|
||||||
xsltproc $xsltFlags --nonet --xinclude \
|
xsltproc $xsltFlags --nonet --xinclude \
|
||||||
|
@ -72,6 +78,7 @@ let
|
||||||
ln -s ${pkgs.docbook5_xsl}/xml/xsl/docbook/images $dst/
|
ln -s ${pkgs.docbook5_xsl}/xml/xsl/docbook/images $dst/
|
||||||
cp ${./style.css} $dst/style.css
|
cp ${./style.css} $dst/style.css
|
||||||
|
|
||||||
|
# Generate manpages.
|
||||||
ensureDir $out/share/man
|
ensureDir $out/share/man
|
||||||
xsltproc --nonet --xinclude \
|
xsltproc --nonet --xinclude \
|
||||||
--param man.output.in.separate.dir 1 \
|
--param man.output.in.separate.dir 1 \
|
||||||
|
|
|
@ -266,7 +266,7 @@ option definitions and all its derivations. Important derivations are store
|
||||||
inside the option <option>system.build</option> and can be listed with the
|
inside the option <option>system.build</option> and can be listed with the
|
||||||
command <command>nix-instantiate --xml --eval-only /etc/nixos/nixos -A
|
command <command>nix-instantiate --xml --eval-only /etc/nixos/nixos -A
|
||||||
config.system.build</command>
|
config.system.build</command>
|
||||||
</para>.
|
</para>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue