mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
* 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"];
|
||||
|
||||
buildInputs = [pkgs.libxslt];
|
||||
buildInputs = [pkgs.libxml2New pkgs.libxslt];
|
||||
|
||||
xsltFlags = ''
|
||||
--param section.autolabel 1
|
||||
|
@ -58,6 +58,12 @@ let
|
|||
ln -s $sources/*.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
|
||||
ensureDir $dst
|
||||
xsltproc $xsltFlags --nonet --xinclude \
|
||||
|
@ -72,6 +78,7 @@ let
|
|||
ln -s ${pkgs.docbook5_xsl}/xml/xsl/docbook/images $dst/
|
||||
cp ${./style.css} $dst/style.css
|
||||
|
||||
# Generate manpages.
|
||||
ensureDir $out/share/man
|
||||
xsltproc --nonet --xinclude \
|
||||
--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
|
||||
command <command>nix-instantiate --xml --eval-only /etc/nixos/nixos -A
|
||||
config.system.build</command>
|
||||
</para>.
|
||||
</para>
|
||||
|
||||
</section>
|
||||
|
||||
|
|
Loading…
Reference in a new issue