I'm using Sphinx for generating the documentation of my application, to be viewed using the QtHelpEngine. Hence I'm using the qthelp builder.
I don't understand how to properly create the keyword section of the qhp file from the reStructuredText used as source.
By default sphinx create an empty tag:
<keywords>
</keywords>
and then the linksForIdentifier() and linksForKeyword() return an empty QMap.
Sphinx fills the keywords with the same content it uses in the index of the documentation project. You find an overview of how to create index-generating markup markup here in the Sphinx documentation (Steve Piercy's assumption is correct).
For example, if we have a the file
this/is/an/example.rst, which contains this Python domain directive:, our
keywordstag in the.qhpfile contains the following keyword:An example for an explicitly created index entry is:
, which creates the following keyword (let's again assume the file is
this/is/an/example.rst):