From: Yann E. MORIN Date: Mon, 2 Dec 2013 20:49:27 +0000 (+0100) Subject: docs/manual: limit the depth of the TOC in the HTML output X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=09dea8e8fb92c3b65d303cca14966e24e022e62b;p=buildroot.git docs/manual: limit the depth of the TOC in the HTML output The current TOC level is set to 4, which does not mean 'a 4-level deep TOC', but really means 'a TOC deep to the 4th level', with the first level being level 0, which means we have: 12. Appendix 12.1. Makedev syntax documentation 12.2. Makeuser syntax documentation 12.3. Partition table layout description syntax 12.3.1. The global section Properties for the global section Which a bit too much. And yet, the fifth level is not shown, since we don't have any! :-/ Limit the depth of the TOC to three levels, which is just enough to be usefull, yet not cluttered by low-level titles. Signed-off-by: "Yann E. MORIN" Signed-off-by: Peter Korsgaard --- diff --git a/docs/manual/manual.mk b/docs/manual/manual.mk index aeafd10d7a..09265665a2 100644 --- a/docs/manual/manual.mk +++ b/docs/manual/manual.mk @@ -72,8 +72,8 @@ endef # The variable _SOURCES defines the dependencies. ################################################################################ define GENDOC -$(call GENDOC_INNER,$(1),xhtml,html,html,HTML,--xsltproc-opts "--stringparam toc.section.depth 4") -$(call GENDOC_INNER,$(1),chunked,split-html,chunked,split HTML,--xsltproc-opts "--stringparam toc.section.depth 4") +$(call GENDOC_INNER,$(1),xhtml,html,html,HTML,--xsltproc-opts "--stringparam toc.section.depth 2") +$(call GENDOC_INNER,$(1),chunked,split-html,chunked,split HTML,--xsltproc-opts "--stringparam toc.section.depth 2") $(call GENDOC_INNER,$(1),pdf,pdf,pdf,PDF,--dblatex-opts "-P latex.output.revhistory=0") $(call GENDOC_INNER,$(1),text,text,text,text) $(call GENDOC_INNER,$(1),epub,epub,epub,ePUB)