Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is Sphinx already suitable for C++ documentation? [closed]

I want to try out documentation generators for a new project in C++. I think my options are either Doxygen or Sphinx. Since I have projects in Python for which I'd like to use Sphinx, I wonder whether Sphinx is the right choice for C++ as well. The Sphinx website states that C++ is supported, but I could not find a document to get me started with C++ documentation.

A similar question has already been discussed on Stackoverflow and the main answer concludes:

not yet fully usable,
but keep watching

Since the discussion is well over a year old, I wonder whether this conclusion is still valid. Should I choose Doxygen over Sphinx for my C++ documentation?

like image 268
clstaudt Avatar asked Oct 17 '12 12:10

clstaudt


People also ask

What is Toctree Sphinx?

The toctree directive is the central element. Note. Simple “inclusion” of one file in another can be done with the include directive.

What is Sphinx rst?

reStructuredText is the default plaintext markup language used by Sphinx. This section is a brief introduction to reStructuredText (reST) concepts and syntax, intended to provide authors with enough information to author documents productively.


1 Answers

Sphinx cannot extract documentation from C++ sources in and by itself. However, there are extensions, most notably Breathe, which utilize Doxygen to extract documentation from C++. I've not tested any of these.

like image 100
lunaryorn Avatar answered Oct 02 '22 08:10

lunaryorn