@@ -20,11 +20,22 @@ DOCBOOK_STYLESHEET ?= http://docbook.sourceforge.net/release/xsl/current/html/ch
20
20
html_tutorialdir = $(libdocdir)/tutorial/html
21
21
dist_html_tutorial_DATA = $(sort manual/html/index.html $(call vpath_listall,manual/html/*.html))
22
22
23
- dist_noinst_DATA += manual/README manual/ libsigc_manual.xml
23
+ dist_noinst_DATA += manual/libsigc_manual.xml
24
24
25
25
DISTCLEANFILES += $(addprefix manual/libsigc_manual.,dvi pdf ps)
26
26
MAINTAINERCLEANFILES += manual/html/*
27
27
28
+ # Set the use.id.as.filename param so that we don't use the chapter / section
29
+ # number as the filename, otherwise the url will change every time anything is
30
+ # re-ordered or inserted in the documentation
31
+ xslt_params = $(strip \
32
+ --param toc.section.depth 1 \
33
+ --stringparam chunker.output.indent 'yes' \
34
+ --stringparam chunker.output.encoding 'UTF-8' \
35
+ --stringparam toc.list.type 'ul' \
36
+ --stringparam use.id.as.filename '1' \
37
+ )
38
+
28
39
manual_srcfile = $(srcdir)/manual/libsigc_manual.xml
29
40
30
41
# Make sure that the documentation will always have been generated before
@@ -34,7 +45,7 @@ reference/html/%: | manual/html/index.html
34
45
manual/html/index.html: $(manual_srcfile)
35
46
-$(AM_V_at)rm -f manual/html/*
36
47
$(AM_V_at)$(MKDIR_P) manual/html
37
- $(AM_V_GEN)xsltproc -o manual/html/ --catalogs '$(DOCBOOK_STYLESHEET)' $(manual_srcfile)
48
+ $(AM_V_GEN)xsltproc $(xslt_params) -o manual/html/ --catalogs '$(DOCBOOK_STYLESHEET)' $(manual_srcfile)
38
49
39
50
manual/libsigc_manual.dvi: $(manual_srcfile)
40
51
$(AM_V_GEN)db2dvi -o manual $(manual_srcfile)
0 commit comments