summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorWilliam Jon McCann <jmccann@redhat.com>2010-01-31 16:30:54 -0500
committerWilliam Jon McCann <jmccann@redhat.com>2010-01-31 16:45:01 -0500
commit3a7e52c9b90245ae1266ed02886b7c0acc50c1a2 (patch)
tree27c5e11e262e3fd1856810e2f94a1f3d4185abf5 /docs
parent4497c99f858350e81ca2de4e60bd6fcb3d144caa (diff)
downloadlibnotify-3a7e52c9b90245ae1266ed02886b7c0acc50c1a2.tar.gz
[spec] Add html output
Diffstat (limited to 'docs')
-rw-r--r--docs/Makefile.am24
-rw-r--r--docs/config.xsl6
2 files changed, 27 insertions, 3 deletions
diff --git a/docs/Makefile.am b/docs/Makefile.am
index 75a8079..e3fa5f6 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -1,7 +1,25 @@
+NULL =
+
SUBDIRS = reference
-EXTRA_DIST = \
- ChangeLog \
- notification-spec.xml
+SPEC_XML_FILES = \
+ notification-spec.xml \
+ $(NULL)
+
+if DOCBOOK_DOCS_ENABLED
+
+htmldocdir = $(docdir)/spec
+htmldoc_DATA = notification-spec.html
+
+notification-spec.html: $(SPEC_XML_FILES)
+ $(XMLTO) $(XMLTO_FLAGS) xhtml-nochunks -m $(top_srcdir)/docs/config.xsl notification-spec.xml
+
+endif # DOCBOOK_DOCS_ENABLED
+
+
+EXTRA_DIST = \
+ ChangeLog \
+ $(SPEC_XML_FILES) \
+ $(NULL)
-include $(top_srcdir)/git.mk
diff --git a/docs/config.xsl b/docs/config.xsl
new file mode 100644
index 0000000..7aa9def
--- /dev/null
+++ b/docs/config.xsl
@@ -0,0 +1,6 @@
+<?xml version='1.0'?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ version="1.0">
+ <xsl:param name="html.stylesheet" select="'docbook.css'"/>
+</xsl:stylesheet>