From 46cd25784a2ad77b461f7a61b3d69c89a10565d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Wed, 12 Oct 2011 14:20:09 +0000 Subject: [PATCH] doc: Use a CSS and callout images for the HTML output. --- doc/manual/Makefile.am | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/doc/manual/Makefile.am b/doc/manual/Makefile.am index 60bd0687..fb4be8b8 100644 --- a/doc/manual/Makefile.am +++ b/doc/manual/Makefile.am @@ -2,18 +2,23 @@ DOCBOOK_FILES = installation.xml introduction.xml manual.xml projects.xml EXTRA_DIST = $(DOCBOOK_FILES) manual.pdf +xsltproc_opts = \ + --param html.stylesheet \'style.css\' \ + --param callout.graphics.extension \'.gif\' + dblatex_opts = \ -V \ -P doc.collab.show=0 \ -P latex.output.revhistory=0 # Include the manual in the tarball. -dist_html_DATA = manual.html +dist_html_DATA = manual.html style.css dist_pdf_DATA = manual.pdf manual.html: $(DOCBOOK_FILES) if test "$(XSLTPROC)" != ""; then \ - $(XSLTPROC) --nonet --xinclude --output manual.html \ + $(XSLTPROC) $(xsltproc_opts) --nonet --xinclude \ + --output manual.html \ $(docbookxsl)/html/docbook.xsl manual.xml; \ else \ echo "Please install xsltproc and rerun configure."; \ @@ -28,6 +33,18 @@ manual.pdf : $(DOCBOOK_FILES) exit 1; \ fi -install-data-local: - $(INSTALL) -d $(DESTDIR)$(datadir)/doc/hydra/manual - $(INSTALL_DATA) manual.pdf $(DESTDIR)$(datadir)/doc/hydra/manual +images: + $(MKDIR_P) images/callouts + if cp $(docbookxsl)/images/callouts/*.gif images/callouts; then \ + chmod +wx images images/callouts; \ + else \ + echo "Please install Docbook XSL and try again."; \ + exit 1; \ + fi + +install-data-hook: images + $(INSTALL) -d $(DESTDIR)$(htmldir)/images/callouts + $(INSTALL_DATA) images/callouts/* $(DESTDIR)$(htmldir)/images/callouts + +distclean-hook: + -rm -rf images