summaryrefslogtreecommitdiffstats
path: root/tools/qdoc3/doc/qdoc-manual.qdoc
diff options
context:
space:
mode:
authorDavid Boddie <dboddie@trolltech.com>2010-07-02 16:21:25 (GMT)
committerDavid Boddie <dboddie@trolltech.com>2010-07-02 16:21:25 (GMT)
commit12f64cce218a5bf76372dd48d54f9fa761fe2955 (patch)
treee24556e09a5a6b3212a4bfdd2aded41ae448a408 /tools/qdoc3/doc/qdoc-manual.qdoc
parent15adb214c92d9e40697b01ab48111d8721b5ef08 (diff)
downloadQt-12f64cce218a5bf76372dd48d54f9fa761fe2955.zip
Qt-12f64cce218a5bf76372dd48d54f9fa761fe2955.tar.gz
Qt-12f64cce218a5bf76372dd48d54f9fa761fe2955.tar.bz2
qdoc: Added a solution for creating tables of contents for manuals.
Reviewed-by: Trust Me
Diffstat (limited to 'tools/qdoc3/doc/qdoc-manual.qdoc')
-rw-r--r--tools/qdoc3/doc/qdoc-manual.qdoc21
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/qdoc3/doc/qdoc-manual.qdoc b/tools/qdoc3/doc/qdoc-manual.qdoc
index 57c17ba..c3ab731 100644
--- a/tools/qdoc3/doc/qdoc-manual.qdoc
+++ b/tools/qdoc3/doc/qdoc-manual.qdoc
@@ -8075,6 +8075,27 @@
qhp.Qt.subprojects.examples.indexTitle = Qt Examples
qhp.Qt.subprojects.examples.selectors = fake:example
\endcode
+
+ To create a table of contents for a manual, create a subproject with
+ a \c{type} property and set it to \c{manual}. The page in the documentation
+ referred to by the \c{indexTitle} property must contain a list of links
+ that acts as a table of contents for the whole manual. QDoc will take the
+ information in this list and create a table of contents for the subproject.
+
+ For example, the configuration file for Qt Creator defines only one
+ subproject for its documentation, including all the documentation in a
+ single manual:
+
+ \code
+ qhp.QtCreator.subprojects = manual
+ qhp.QtCreator.subprojects.manual.title = Qt Creator Manual
+ qhp.QtCreator.subprojects.manual.indexTitle = Qt Creator Manual
+ qhp.QtCreator.subprojects.manual.type = manual
+ \endcode
+
+ In this example, the page entitled "Qt Creator Manual" contains a nested
+ list of links to pages in the documentation which is duplicated in
+ Qt Assistant's Contents tab.
*/
/*!