From 3034daabb782da459c0f315f90d60333ecf86b72 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 23 Jan 2007 10:52:51 +0000 Subject: [PATCH] * Generate DocBook documentation on the available options from the Nix expression. svn path=/nixos/trunk/; revision=7764 --- doc/manual/Makefile | 20 ++++++++++++++ doc/manual/options-to-docbook.xsl | 45 +++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 doc/manual/Makefile create mode 100644 doc/manual/options-to-docbook.xsl diff --git a/doc/manual/Makefile b/doc/manual/Makefile new file mode 100644 index 00000000000..2d619680814 --- /dev/null +++ b/doc/manual/Makefile @@ -0,0 +1,20 @@ +XMLLINT = xmllint --catalogs +XSLTPROC = xsltproc --catalogs \ + --param section.autolabel 1 \ + --param section.label.includes.component.label 1 \ + --param html.stylesheet \'style.css\' \ + --param xref.with.number.and.title 1 \ + --param toc.section.depth 3 \ + --param admon.style \'\' \ + --param callout.graphics.extension \'.gif\' + +options.html: options-db.xml + $(XSLTPROC) --nonet --xinclude --output $@ \ + $(docbookxsl)/html/docbook.xsl options-db.xml + +options-db.xml: options.xml options-to-docbook.xsl + xsltproc -o options-db.xml options-to-docbook.xsl options.xml + +options.xml: ../../system/options.nix + echo 'import ../../system/options.nix {pkgs = import ../../pkgs/top-level/all-packages.nix {};}' | \ + nix-instantiate --eval-only --xml --strict - > options.xml || (rm options.xml && false) diff --git a/doc/manual/options-to-docbook.xsl b/doc/manual/options-to-docbook.xsl new file mode 100644 index 00000000000..bad74c3f59d --- /dev/null +++ b/doc/manual/options-to-docbook.xsl @@ -0,0 +1,45 @@ + + + + + + + + + + List of Options + + + + + + + + + + + + + + + + + + + + + + + + +