Python – How NOT to sort Sphinx output in alphabetical order

From the sphinx.ext.autodoc documentation: autodoc_member_order This value selects if automatically documented members are sorted alphabetical (value ‘alphabetical’), by member type (value ‘groupwise’) or by source order (value ‘bysource’). The default is alphabetical. Note that for source order, the module must be a Python module with the source code available. So somewhere in your conf.py file, … Read more

Using Sphinx to write personal websites and blogs

I’ve done it at http://reinout.vanrees.org/weblog. The key trick is to add a preprocessor step. I’ve got my blog entries in a weblog/yyyy/mm/dd/ folder structure. A script iterates through that folder structure, creating index.txt files in every directory, listing the sub-items. The normal Sphinx process then renders those index.txt files. I added a custom Sphinx processor … Read more

Has anyone used Sphinx to document a C++ project? [closed]

As mentioned here and here, Sphinx native C++ support is related to highlighting/formatting/referencing, not in-code documentation extraction breathe has developed out of the discussion that chrisdew referenced [Edit inserted below]: I tested the doxygen+breathe+sphinx toolchain on a multi-10k C++ library consisting of 10 different modules/domains. My bottom line is: not yet fully usable but keep … Read more

No generation of the module index “modindex” when using Sphinx

Short version run sphinx-apidoc -o . mymodule uncomment and modify conf.py. For this example, sys.path.insert(0, os.path.abspath(‘mymodule’)) re-run make html Long answer I can reproduce the issue with this sample module: $cat mymodule/mymodule.py def fn1(): ”’First function”’ pass def fn2(): ”’Second function”’ pass Running sphinx-quickstart produces the following tree: $tree . ├── Makefile ├── _build ├── … Read more