From 896a9f0508bae27aae4a751bfc1429f7966362e5 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 14 Jul 2009 15:47:03 +0000 Subject: [PATCH] * Generate a manual page for configuration.nix containing all the options. svn path=/nixos/branches/modular-nixos/; revision=16358 --- doc/manual/default.nix | 20 ++++++++++++---- doc/manual/installation.xml | 2 +- doc/manual/man-configuration.xml | 38 +++++++++++++++++++++++++++++++ doc/manual/man-pages.xml | 28 +++++++++++++++++++++++ doc/manual/manual.xml | 7 ++++-- doc/manual/options-to-docbook.xsl | 7 ++---- 6 files changed, 89 insertions(+), 13 deletions(-) create mode 100644 doc/manual/man-configuration.xml create mode 100644 doc/manual/man-pages.xml diff --git a/doc/manual/default.nix b/doc/manual/default.nix index 816e333866b..1909c8a9e44 100644 --- a/doc/manual/default.nix +++ b/doc/manual/default.nix @@ -32,18 +32,28 @@ let ''; buildCommand = '' - ensureDir $out + ln -s $sources/*.xml . ln -s ${optionsDocBook} options-db.xml + + dst=$out/share/doc/nixos + ensureDir $dst xsltproc $xsltFlags --nonet --xinclude \ - --output $out/manual.html \ + --output $dst/manual.html \ ${pkgs.docbook5_xsl}/xml/xsl/docbook/xhtml/docbook.xsl \ ./manual.xml - ln -s ${pkgs.docbook5_xsl}/xml/xsl/docbook/images $out/ - cp ${./style.css} $out/style.css + ln -s ${pkgs.docbook5_xsl}/xml/xsl/docbook/images $dst/ + cp ${./style.css} $dst/style.css + + ensureDir $out/share/man + xsltproc --nonet --xinclude \ + --param man.output.in.separate.dir 1 \ + --param man.output.base.dir "'$out/share/man/'" \ + ${pkgs.docbook5_xsl}/xml/xsl/docbook/manpages/docbook.xsl \ + ./man-pages.xml ensureDir $out/nix-support - echo "doc manual $out manual.html" >> $out/nix-support/hydra-build-products + echo "doc manual $dst manual.html" >> $out/nix-support/hydra-build-products ''; }; diff --git a/doc/manual/installation.xml b/doc/manual/installation.xml index 8dbeb0cf446..5b116bbd060 100644 --- a/doc/manual/installation.xml +++ b/doc/manual/installation.xml @@ -246,7 +246,7 @@ $ nix-env -qa \* shows what packages are available, and - + $ nix-env -i w3m install the w3m browser. diff --git a/doc/manual/man-configuration.xml b/doc/manual/man-configuration.xml new file mode 100644 index 00000000000..d49369d2c58 --- /dev/null +++ b/doc/manual/man-configuration.xml @@ -0,0 +1,38 @@ + + + + configuration.nix + 5 + NixOS + + + + + configuration.nix + NixOS system configuration specification + + + +Description + +The file /etc/nixos/configuration.nix +contains the declarative specification of your NixOS system +configuration. The command nixos-rebuild takes +this file and realises the system configuration specified +therein. + + + + +Options + +You can use the following options in +configuration.nix. + + + + + + diff --git a/doc/manual/man-pages.xml b/doc/manual/man-pages.xml new file mode 100644 index 00000000000..ccd0ebfc6da --- /dev/null +++ b/doc/manual/man-pages.xml @@ -0,0 +1,28 @@ + + + NixOS Reference Pages + + + + + + Eelco + Dolstra + + Author + + + + 2007 + 2008 + 2009 + Eelco Dolstra + + + + + + + diff --git a/doc/manual/manual.xml b/doc/manual/manual.xml index 9f79b6fdb6e..6ad59ae8486 100644 --- a/doc/manual/manual.xml +++ b/doc/manual/manual.xml @@ -35,7 +35,7 @@ problems here and there. Extensive familiarity with Linux is recommended. If you encounter problems, please report them on the nix-dev@cs.uu.nl mailing list or on . + xlink:href="irc://irc.freenode.net/#nixos" />. @@ -44,6 +44,9 @@ - + + List of Options + + diff --git a/doc/manual/options-to-docbook.xsl b/doc/manual/options-to-docbook.xsl index 1496daf30c6..34a415ffc17 100644 --- a/doc/manual/options-to-docbook.xsl +++ b/doc/manual/options-to-docbook.xsl @@ -13,9 +13,6 @@ - - List of Options - @@ -39,6 +36,7 @@ Default: + @@ -54,6 +52,7 @@ Example: + @@ -68,8 +67,6 @@ - -