doc: Use a CSS and callout images for the HTML output.

This commit is contained in:
Ludovic Courtès 2011-10-12 14:20:09 +00:00
parent b63e5bdac9
commit 46cd25784a

View file

@ -2,18 +2,23 @@ DOCBOOK_FILES = installation.xml introduction.xml manual.xml projects.xml
EXTRA_DIST = $(DOCBOOK_FILES) manual.pdf EXTRA_DIST = $(DOCBOOK_FILES) manual.pdf
xsltproc_opts = \
--param html.stylesheet \'style.css\' \
--param callout.graphics.extension \'.gif\'
dblatex_opts = \ dblatex_opts = \
-V \ -V \
-P doc.collab.show=0 \ -P doc.collab.show=0 \
-P latex.output.revhistory=0 -P latex.output.revhistory=0
# Include the manual in the tarball. # Include the manual in the tarball.
dist_html_DATA = manual.html dist_html_DATA = manual.html style.css
dist_pdf_DATA = manual.pdf dist_pdf_DATA = manual.pdf
manual.html: $(DOCBOOK_FILES) manual.html: $(DOCBOOK_FILES)
if test "$(XSLTPROC)" != ""; then \ if test "$(XSLTPROC)" != ""; then \
$(XSLTPROC) --nonet --xinclude --output manual.html \ $(XSLTPROC) $(xsltproc_opts) --nonet --xinclude \
--output manual.html \
$(docbookxsl)/html/docbook.xsl manual.xml; \ $(docbookxsl)/html/docbook.xsl manual.xml; \
else \ else \
echo "Please install xsltproc and rerun configure."; \ echo "Please install xsltproc and rerun configure."; \
@ -28,6 +33,18 @@ manual.pdf : $(DOCBOOK_FILES)
exit 1; \ exit 1; \
fi fi
install-data-local: images:
$(INSTALL) -d $(DESTDIR)$(datadir)/doc/hydra/manual $(MKDIR_P) images/callouts
$(INSTALL_DATA) manual.pdf $(DESTDIR)$(datadir)/doc/hydra/manual 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