You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[DISCUSSION] Set up documentation/website generator #26
There's already some question of where to put documentation: #24 (comment)
Some candidates:
Doxygen handles C++ nicely and can scrape docstrings. It can also generate a website, not just API docs, and accepts a limited amount of Markdown. IMO, however, it doesn't look very pretty (though you can theme it).
Sphinx while primarily used for Python can also handle C++ and is easily extensible. It does not scrape docstrings. It can render Doxygen-generated docstrings via a plugin but IMO this does not look very nice, loses some of the structure that Doxygen has, and the plugin seems to be minimally maintained/unmaintained (for a while it required a rather outdated version of Sphinx). It can render Markdown through a plugin (though it will be Sphinx-flavored Markdown).
We could also go with separate documentation/website generators, in which case we could pull in Jekyll/Hugo/Quarto/Sphinx/[insert your favorite yak shave of choice here].
Has anyone worked with any other tools?
Reacted by Gang Wu, Junwang Zhao and Fokko Driesprong
How does mkdocs compare to Sphinx? Sphinx really has excellent cross-referencing capabilities (to API docs, to glossary, to other pages, to index references, even to other Spinx docs).
How does it work for C++ though? I see a few random plugins (like cxxdox) but I'm not confident in them vs Doxygen. (I also don't see from a bit of searching how mkdocs handles the equivalent of a Sphinx :cpp:class or :py:meth: etc. which is one of the best features of Sphinx for me.)
Activity
wgtmac commentedon Jan 13, 2025
I'm not an expert so I asked ChatGPT to search other alternatives for me:
• Fast build times
• Markdown support
• Excellent search functionality
• Mobile-friendly
• Easy customization
• Active community
• Additional setup complexity
• Two-step build process
• Doxybook2
• Material theme
• Multi-language support
• Clean design
• Good search capabilities
• Cross-platform
• More complex setup
• Originally designed for .NET
• DocFX Guide
• Clean output
• Accurate C++ parsing (libclang)
• Markdown support
• Standard C++ documentation style
• Smaller community
• Limited customization options
• Accurate C++ parsing (Clang)
• Good C++11 support
• Simple configuration
• Static HTML generation
• Limited themes
• Basic feature set
• Natural readable format
• Modern output
• Good organization
• Active maintenance
• Limited API documentation features
• Less flexible customization
• Getting Started
lidavidm commentedon Jan 13, 2025
ChatGPT misses again!
wgtmac commentedon Jan 13, 2025
Doxygen might be the best option from all the information we have so far :)
lidavidm commentedon Jan 13, 2025
At the very least, most other solutions will use Doxygen as a base so I'll try and set it up
Fokko commentedon Jan 13, 2025
I don't have any opinion on the C++ documentation generation, but we use mkdocs at PyIceberg, and it works really well: https://github.com/apache/iceberg-python/tree/main/mkdocs
pitrou commentedon Jan 13, 2025
How does mkdocs compare to Sphinx? Sphinx really has excellent cross-referencing capabilities (to API docs, to glossary, to other pages, to index references, even to other Spinx docs).
Fokko commentedon Jan 13, 2025
@pitrou It is pretty similar, mkdocs feels a bit more modern to me. Referencing the Python docs works pretty well: https://py.iceberg.apache.org/reference/pyiceberg/io/
lidavidm commentedon Jan 13, 2025
How does it work for C++ though? I see a few random plugins (like cxxdox) but I'm not confident in them vs Doxygen. (I also don't see from a bit of searching how mkdocs handles the equivalent of a Sphinx
:cpp:classor:py:meth:etc. which is one of the best features of Sphinx for me.)Add Doxygen for generating API documentation
Add Doxygen for generating API documentation (apache#27)