Output the HTML documentation truly in the fashion of manual pages

This commit is contained in:
Pierre Pronchery 2014-07-10 22:59:54 +02:00
parent 4cecce2f9d
commit 454f34357b
5 changed files with 45 additions and 3 deletions

View File

@ -26,6 +26,8 @@ dist:
$(PACKAGE)-$(VERSION)/data/project.conf \ $(PACKAGE)-$(VERSION)/data/project.conf \
$(PACKAGE)-$(VERSION)/doc/Makefile \ $(PACKAGE)-$(VERSION)/doc/Makefile \
$(PACKAGE)-$(VERSION)/doc/docbook.sh \ $(PACKAGE)-$(VERSION)/doc/docbook.sh \
$(PACKAGE)-$(VERSION)/doc/manual.css.xml \
$(PACKAGE)-$(VERSION)/doc/presenter.css.xml \
$(PACKAGE)-$(VERSION)/doc/presenter.xml \ $(PACKAGE)-$(VERSION)/doc/presenter.xml \
$(PACKAGE)-$(VERSION)/doc/project.conf \ $(PACKAGE)-$(VERSION)/doc/project.conf \
$(PACKAGE)-$(VERSION)/include/Presenter.h \ $(PACKAGE)-$(VERSION)/include/Presenter.h \

View File

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

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>

7
doc/presenter.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: -->

View File

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