Open strasdat opened 5 years ago
Thank you, I'm glad you like the tool!
There are no settings for what you ask -- file compounds and program listings are currently ignored :( But Doxyrest can be easily modified to produce pages for that, as well. File compounds are essentially the same entities as groups, and program listings use the same structure as regular code snippets. Probably, we will need a setting to show or hide files.
Also, we need to decide where to put detailed documentation for members. Probably, we want to keep it on group/namespace pages (just like now), and file pages will only have links.
But all in all, it can be done, yes. At the moment, I'm occupied with another project, so I can't give a timeframe for this feature. If you want it sooner, you can implement it and send me a pull request.
@vovkos, thanks! I don't have an overview over doxyrest yet. Which files would I need to touch to make this PR. Just in frame/cfamily
, or would I need to write c++ code?
Modifications of C++ is required in this case (file compounds are just not exported to Lua frames at the moment).
Something like m_fileArray
should be added to Module, then CompoundDefType should be modified to handle CompoundKind_File
during parsing and add it to this m_fileArray
, then it should be exported in Generator::luaExport as something like g_fileArray
Then inside index_main.rst we should iterate through this g_fileArray
and generate pages for each file compound. A new page frame called something like file.rst.in
should be created, too -- based on group.rst.in.
Now that I wrote all the above, this feature is not a one-liner, apparently :)
Doxyrest is awesome! I tried various tools including breathe/exhale, but I really like the clean pipeline from XML to rst to html.
However, there is one feature I'm missing: Explicit documentation of files:
Are these features already supported, or are there plans to add them in the future?