[PATCH] user-manual: ensure generated manual references stylesheet

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: J. Bruce Fields
Date: Sunday, March 4, 2007 - 2:59 pm

From: J. Bruce Fields <bfields@citi.umich.edu>

The generated user manual is rather hard to read thanks to the lack of
the css that's supposed to be included from docbook-xsl.css.

I'm totally ignorant of the toolchain; grubbing through xmlto and
related scripts, the easiest way I could find to ensure that the
generated html links to the stylesheet is by calling xsltproc directly.
Maybe there's some better way.

Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>
---
 Documentation/Makefile |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/Documentation/Makefile b/Documentation/Makefile
index b6d1d88..7c1c9e1 100644
--- a/Documentation/Makefile
+++ b/Documentation/Makefile
@@ -105,8 +105,11 @@ clean:
 user-manual.xml: user-manual.txt user-manual.conf
 	$(ASCIIDOC) -b docbook -d book $<
 
+XSLT = http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl
+XSLTOPTS = --nonet --xinclude --stringparam html.stylesheet docbook-xsl.css
+
 user-manual.html: user-manual.xml
-	xmlto html-nochunks $<
+	xsltproc $(XSLTOPTS) -o $@ $(XSLT) $<
 
 glossary.html : glossary.txt sort_glossary.pl
 	cat $< | \
-- 
1.5.0.gb75812-dirty

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Documentation (mostly user manual) patches, J. Bruce Fields, (Sun Mar 4, 2:59 pm)
[PATCH] user-manual: ensure generated manual references st ..., J. Bruce Fields, (Sun Mar 4, 2:59 pm)
[PATCH] user-manual: more detailed merge discussion, J. Bruce Fields, (Sun Mar 4, 2:59 pm)
Re: Documentation (mostly user manual) patches, Junio C Hamano, (Sun Mar 4, 8:14 pm)
Re: Documentation (mostly user manual) patches, J. Bruce Fields, (Mon Mar 5, 11:38 am)
Re: Documentation (mostly user manual) patches, Ramsay Jones, (Wed Mar 7, 1:19 pm)
Re: Documentation (mostly user manual) patches, J. Bruce Fields, (Sat Mar 10, 9:35 pm)
[PATCH 2/6] user-manual: fix inconsistent example, J. Bruce Fields, (Sat Mar 10, 9:35 pm)
[PATCH 5/6] user-manual: fix rendering of history diagrams, J. Bruce Fields, (Sat Mar 10, 9:35 pm)
Re: [PATCH 2/6] user-manual: fix inconsistent example, J. Bruce Fields, (Sat Mar 10, 9:39 pm)
Re: Documentation (mostly user manual) patches, Junio C Hamano, (Sat Mar 10, 10:35 pm)
Re: [PATCH 2/6] user-manual: fix inconsistent example, Ramsay Jones, (Tue Mar 13, 12:31 pm)
Re: [PATCH 2/6] user-manual: fix inconsistent example, J. Bruce Fields, (Wed Mar 14, 4:19 pm)