forked from qt-creator/qt-creator
Doc: Update info about automatically generating navigation links
The \nexpage and \previouspage links in the QDS Manual are now automatically generated according to the list in the "All Topics" topic. Change-Id: If93c605863269056060b1585641feac167d95f25 Reviewed-by: Esa Törmänen <esa.tormanen@qt.io> Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
This commit is contained in:
@@ -233,21 +233,41 @@
|
|||||||
Save screenshots and other illustrations in \c {\qtdesignstudio\images}.
|
Save screenshots and other illustrations in \c {\qtdesignstudio\images}.
|
||||||
|
|
||||||
If you add new topics to the \QDS Manual, add links to them to the table
|
If you add new topics to the \QDS Manual, add links to them to the table
|
||||||
of contents in \c {qtdesignstudio-toc.qdoc} and check the values of the
|
of contents in \c {qtdesignstudio-toc.qdoc}.
|
||||||
navigation links around them.
|
|
||||||
|
|
||||||
\section2 Updating Next and Previous Links
|
\section2 Updating Next and Previous Links
|
||||||
|
|
||||||
QDoc automatically generates links to the previous
|
QDoc automatically generates links to the previous and next page in each
|
||||||
and next page in the \QC Manual based on the list in
|
manual based on the list in a topic with the title \e {All Topics}, which
|
||||||
\c {\qtcreator\doc\qtcreator\src\qtcreator-toc.qdoc}. So, when you add
|
is in the following files:
|
||||||
new topics, you must either add them to the TOC or to a group of topics
|
|
||||||
(\c {\ingroup}). You can see the current groups in the \e {How To} and
|
\list
|
||||||
|
\li \QC: \c {\qtcreator\doc\qtcreator\src\qtcreator-toc.qdoc}
|
||||||
|
\li \QDS: \c {\qtcreator\doc\qtdesignstudio\src\qtdesignstudio-toc.qdoc}
|
||||||
|
\endlist
|
||||||
|
|
||||||
|
The title of the topic to use for automatically generating the navigation
|
||||||
|
links is set as the value of the \c indexTitle option in the document
|
||||||
|
configuration file:
|
||||||
|
|
||||||
|
\list
|
||||||
|
\li \QC: \c qhp.qtcreator.subprojects.manual.indexTitle in
|
||||||
|
\c {\doc\qtcreator\config\qtcreator-project.qdocconf}
|
||||||
|
\li \QDS: \c qhp.qtdesignstudio.subprojects.manual.indexTitle in
|
||||||
|
\c {\doc\qtdesignstudio\config\qtdesignstudio.qdocconf}
|
||||||
|
\endlist
|
||||||
|
|
||||||
|
When you add new topics, you must add them either to the TOC or to a
|
||||||
|
group of topics (\c {\ingroup}) that is used to generate a list in the TOC
|
||||||
|
(\l{https://doc.qt.io/qt-6/12-0-qdoc-commands-miscellaneous.html#generatelist-command}
|
||||||
|
{\c {\generatelist}}).
|
||||||
|
|
||||||
|
In the \QC Manual, you can see the current groups in the \e {How To} and
|
||||||
\e {Reference} sections of the TOC. You can add new groups.
|
\e {Reference} sections of the TOC. You can add new groups.
|
||||||
|
|
||||||
When you add new topics to the \QDS Manual, you must add links to them from
|
\note You do not need to manually change the navigation links, but they must
|
||||||
\c {\doc\qtdesignstudio\src\qtdesignstudio-toc.qdoc} and change the
|
be there with some initial values for QDoc to replace with the values from
|
||||||
navigation links of the topics around them.
|
the TOC when you build the docs.
|
||||||
|
|
||||||
\section1 Adding Documentation for Independent Plugins
|
\section1 Adding Documentation for Independent Plugins
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user