Output the HTML documentation truly in the fashion of manual pages

This commit is contained in:
Pierre Pronchery 2014-07-08 00:46:52 +02:00
parent 35eb012871
commit 8b6a45c6e9
6 changed files with 55 additions and 5 deletions

View File

@ -27,8 +27,11 @@ dist:
$(PACKAGE)-$(VERSION)/data/project.conf \
$(PACKAGE)-$(VERSION)/doc/Makefile \
$(PACKAGE)-$(VERSION)/doc/docbook.sh \
$(PACKAGE)-$(VERSION)/doc/camera.css.xml \
$(PACKAGE)-$(VERSION)/doc/camera.xml \
$(PACKAGE)-$(VERSION)/doc/gallery.css.xml \
$(PACKAGE)-$(VERSION)/doc/gallery.xml \
$(PACKAGE)-$(VERSION)/doc/manual.css.xml \
$(PACKAGE)-$(VERSION)/doc/project.conf \
$(PACKAGE)-$(VERSION)/po/Makefile \
$(PACKAGE)-$(VERSION)/po/gettext.sh \

View File

@ -12,13 +12,13 @@ all: $(TARGETS)
camera.1: camera.xml
./docbook.sh -P "$(PREFIX)" -- "camera.1"
camera.html: camera.xml
camera.html: camera.css.xml camera.xml manual.css.xml
./docbook.sh -P "$(PREFIX)" -- "camera.html"
gallery.1: gallery.xml
./docbook.sh -P "$(PREFIX)" -- "gallery.1"
gallery.html: gallery.xml
gallery.html: gallery.css.xml gallery.xml manual.css.xml
./docbook.sh -P "$(PREFIX)" -- "gallery.html"
clean:

7
doc/camera.css.xml Normal file
View File

@ -0,0 +1,7 @@
<?xml version="1.0"?>
<!-- $Id$ -->
<!DOCTYPE style [
<!ENTITY manual "manual.css.xml">
]>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="&manual;"/>
<!-- vim: set noet ts=1 sw=1 sts=1 tw=80: -->

7
doc/gallery.css.xml Normal file
View File

@ -0,0 +1,7 @@
<?xml version="1.0"?>
<!-- $Id$ -->
<!DOCTYPE style [
<!ENTITY manual "manual.css.xml">
]>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="&manual;"/>
<!-- vim: set noet ts=1 sw=1 sts=1 tw=80: -->

33
doc/manual.css.xml Normal file
View File

@ -0,0 +1,33 @@
<?xml version="1.0"?>
<style><![CDATA[/* $Id$ */
div.refentry {
font-family: monospace;
margin-left: 5ex;
min-width: 102ex;
width: 102ex;
}
div.refentry h1, div.refentry h2, div.refentry h3 {
font-size: inherit;
margin-bottom: 0;
}
div.refentry h1, div.refentry h2 {
margin-left: -4ex;
text-transform: uppercase;
}
div.refentry h3 {
margin-left: -2ex;
}
div.refentry p {
margin-top: 0;
padding-top: 0;
}
div.refentry blockquote, div.refentry pre {
margin-left: 5ex;
}
]]></style>

View File

@ -1,5 +1,5 @@
targets=camera.1,camera.html,gallery.1,gallery.html
dist=Makefile,docbook.sh,camera.xml,gallery.xml
dist=Makefile,docbook.sh,camera.css.xml,camera.xml,gallery.css.xml,gallery.xml,manual.css.xml
[camera.1]
type=script
@ -11,7 +11,7 @@ depends=camera.xml
type=script
script=./docbook.sh
install=
depends=camera.xml
depends=camera.css.xml,camera.xml,manual.css.xml
[gallery.1]
type=script
@ -23,4 +23,4 @@ depends=gallery.xml
type=script
script=./docbook.sh
install=
depends=gallery.xml
depends=gallery.css.xml,gallery.xml,manual.css.xml