From e30133469665d02588118594d4db8b6148249cd7 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 15 Mar 2005 13:55:41 +0000 Subject: [PATCH] * XInclude all the way. --- doc/manual/Makefile.am | 16 ++++---- doc/manual/manual.xml | 57 +++++++++----------------- doc/manual/nix-env.xml | 4 +- doc/manual/nix-instantiate.xml | 4 +- doc/manual/nix-store.xml | 4 +- doc/manual/opt-common-syn.xml | 4 ++ doc/manual/opt-common.xml | 4 ++ doc/manual/writing-nix-expressions.xml | 2 +- 8 files changed, 43 insertions(+), 52 deletions(-) diff --git a/doc/manual/Makefile.am b/doc/manual/Makefile.am index e577be8c6..8b084f063 100644 --- a/doc/manual/Makefile.am +++ b/doc/manual/Makefile.am @@ -1,4 +1,4 @@ -ENV = SGML_CATALOG_FILES=$(docbookcatalog):$(docbookebnfcatalog) +ENV = SGML_CATALOG_FILES=$(docbookcatalog) XMLLINT = $(ENV) $(xmllint) $(xmlflags) --catalogs XSLTPROC = $(ENV) $(xsltproc) $(xmlflags) --catalogs \ @@ -20,18 +20,18 @@ SOURCES = manual.xml introduction.xml installation.xml \ troubleshooting.xml bugs.xml opt-common.xml opt-common-syn.xml \ quick-start.xml nix-lang-ref.xml style.css images -manual.is-valid: $(SOURCES) version.xml - $(XMLLINT) --noout --valid manual.xml +manual.is-valid: $(SOURCES) version.txt + $(XMLLINT) --xinclude $< | $(XMLLINT) --noout --valid - touch $@ -version.xml: - echo -n $(VERSION) > version.xml +version.txt: + echo -n $(VERSION) > version.txt man $(MANS): $(SOURCES) manual.is-valid - $(XSLTPROC) $(docbookxsl)/manpages/docbook.xsl manual.xml + $(XSLTPROC) --xinclude $(docbookxsl)/manpages/docbook.xsl manual.xml manual.html: $(SOURCES) manual.is-valid images - $(XSLTPROC) --output manual.html $(docbookxsl)/html/docbook.xsl manual.xml + $(XSLTPROC) --xinclude --output manual.html $(docbookxsl)/html/docbook.xsl manual.xml all-local: manual.html @@ -50,7 +50,7 @@ images: cp $(docbookxsl)/images/callouts/*.png images/callouts chmod +w -R images -KEEP = manual.html manual.is-valid version.xml $(MANS) +KEEP = manual.html manual.is-valid version.txt $(MANS) EXTRA_DIST = $(SOURCES) $(FIGURES) $(KEEP) diff --git a/doc/manual/manual.xml b/doc/manual/manual.xml index 645afa5e6..5bdb7b324 100644 --- a/doc/manual/manual.xml +++ b/doc/manual/manual.xml @@ -3,31 +3,14 @@ PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.docbook.org/xml/4.3/docbook-xml-4.3.zip" [ - - - - - - - - - - - - - - - - - - - ]> Nix User's Guide - Draft (Version &version;) + Draft (Version ) @@ -40,49 +23,49 @@ Eelco Dolstra - - &introduction; - &quick-start; - &installation; - &package-management; - &writing-nix-expressions; - &build-farm; + + + + + + + Command Reference nix-env - &nix-env; + nix-store - &nix-store; + nix-instantiate - &nix-instantiate; + nix-collect-garbage - &nix-collect-garbage; + nix-push - &nix-push; + nix-pull - &nix-pull; + nix-prefetch-url - &nix-prefetch-url; + - + - &troubleshooting; - &bugs; + + diff --git a/doc/manual/nix-env.xml b/doc/manual/nix-env.xml index 35107115a..b830cd5ea 100644 --- a/doc/manual/nix-env.xml +++ b/doc/manual/nix-env.xml @@ -7,7 +7,7 @@ nix-env - &opt-common-syn; + @@ -79,7 +79,7 @@ - &opt-common; + / diff --git a/doc/manual/nix-instantiate.xml b/doc/manual/nix-instantiate.xml index dc72ab83b..ec26eaa71 100644 --- a/doc/manual/nix-instantiate.xml +++ b/doc/manual/nix-instantiate.xml @@ -7,7 +7,7 @@ nix-instantiate - &opt-common-syn; + @@ -41,7 +41,7 @@ - &opt-common; + diff --git a/doc/manual/nix-store.xml b/doc/manual/nix-store.xml index 9592396c3..1955a9b68 100644 --- a/doc/manual/nix-store.xml +++ b/doc/manual/nix-store.xml @@ -7,7 +7,7 @@ nix-store - &opt-common-syn; + operation options arguments @@ -46,7 +46,7 @@ - &opt-common; + diff --git a/doc/manual/opt-common-syn.xml b/doc/manual/opt-common-syn.xml index 50f8f043d..85740ba79 100644 --- a/doc/manual/opt-common-syn.xml +++ b/doc/manual/opt-common-syn.xml @@ -1,3 +1,5 @@ + + @@ -17,3 +19,5 @@ + + diff --git a/doc/manual/opt-common.xml b/doc/manual/opt-common.xml index 7650d62e5..b0e581ff9 100644 --- a/doc/manual/opt-common.xml +++ b/doc/manual/opt-common.xml @@ -1,3 +1,5 @@ + + @@ -182,3 +184,5 @@ + + \ No newline at end of file diff --git a/doc/manual/writing-nix-expressions.xml b/doc/manual/writing-nix-expressions.xml index 28b70b786..a465177f3 100644 --- a/doc/manual/writing-nix-expressions.xml +++ b/doc/manual/writing-nix-expressions.xml @@ -383,7 +383,7 @@ some fragments of that can be built by Nix (since when we fill in the arguments of the function, what we get is its body, which is the call to stdenv.mkDerivation in ). + linkend='ex-hello-nix' />).