diff options
author | Vladimír Vondruš <mosra@centrum.cz> | 2017-11-25 19:02:49 (GMT) |
---|---|---|
committer | Vladimír Vondruš <mosra@centrum.cz> | 2017-11-29 17:54:10 (GMT) |
commit | fe760977e2cb643b94fbf21847e0c81e8a080966 (patch) | |
tree | e7f4616c8aedd4ad0b309655505155006256fc7f /testing | |
parent | bd2cf98e75c600e0c2f5ae95301df8745d65571a (diff) | |
download | Doxygen-fe760977e2cb643b94fbf21847e0c81e8a080966.zip Doxygen-fe760977e2cb643b94fbf21847e0c81e8a080966.tar.gz Doxygen-fe760977e2cb643b94fbf21847e0c81e8a080966.tar.bz2 |
Expose TOC placeholder in XML output.
Currently the XML output for a page was generated the same
independently of whether the \tableofcontents command was present in
the page source or not. Because of that, the users of the XML output
had no chance of knowing whether given page should have a TOC or not.
There's now a new <tableofcontents> element that gets added in case
the TOC was requested. As it is trivial to populate the TOC on user
side by simply enumerating the <sectN> elements, the element is empty
and acts just as a boolean.
Diffstat (limited to 'testing')
-rw-r--r-- | testing/043/mypage.xml | 1 | ||||
-rw-r--r-- | testing/043_page.dox | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/testing/043/mypage.xml b/testing/043/mypage.xml index 589df5b..79fb7ae 100644 --- a/testing/043/mypage.xml +++ b/testing/043/mypage.xml @@ -4,6 +4,7 @@ <compoundname>mypage</compoundname> <title>Page Title</title> <innerpage refid="another">Another Page</innerpage> + <tableofcontents/> <briefdescription> <para>Page brief description. </para> </briefdescription> diff --git a/testing/043_page.dox b/testing/043_page.dox index 096f998..38c1894 100644 --- a/testing/043_page.dox +++ b/testing/043_page.dox @@ -4,6 +4,8 @@ /** \page mypage Page Title * \brief Page brief description. * + * @tableofcontents + * * Text at page level. See \ref mysect for more. * \section mysect Section Title. * Text at section level. See \ref mysubsect for more. |