[sr-dev] git:master:a80e3421: doc/counter_list: makefile - generate html with full section numbers

Daniel-Constantin Mierla miconda at gmail.com
Sun Jun 4 16:28:52 CEST 2017


Module: kamailio
Branch: master
Commit: a80e3421dda08c00935bbac08e5b589175c51f5d
URL: https://github.com/kamailio/kamailio/commit/a80e3421dda08c00935bbac08e5b589175c51f5d

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2017-06-04T16:28:18+02:00

doc/counter_list: makefile - generate html with full section numbers

---

Modified: doc/tutorials/counter_list/docbook/Makefile

---

Diff:  https://github.com/kamailio/kamailio/commit/a80e3421dda08c00935bbac08e5b589175c51f5d.diff
Patch: https://github.com/kamailio/kamailio/commit/a80e3421dda08c00935bbac08e5b589175c51f5d.patch

---

diff --git a/doc/tutorials/counter_list/docbook/Makefile b/doc/tutorials/counter_list/docbook/Makefile
index 1bf8952d99..c4eefe3071 100644
--- a/doc/tutorials/counter_list/docbook/Makefile
+++ b/doc/tutorials/counter_list/docbook/Makefile
@@ -2,6 +2,14 @@
 docs = counter_list.xml
 docbook_dir = ../../../docbook
 # no subsection listed in the main TOC
-xsltproc_flags+=--stringparam  toc.section.depth 0
+xsltproc_flags+= --stringparam toc.section.depth 0
+xsltproc_flags+= --stringparam section.autolabel 1
+xsltproc_flags+= --stringparam section.label.includes.component.label 1
 
 include $(docbook_dir)/Makefile
+
+# updates to the html generated file
+.PHONY: html-update
+html-update:
+	# strip first to lines (xml and doctype constraints)
+	sed -i '1,2d' $(basename $(docs)).html




More information about the sr-dev mailing list