SphinxDDoc
A sphinx extension that adds a domain for D as well as an autodocumenter that uses libdparse to get D documentation comments.
Usage
config.py
:
extensions = [
'ddoc.d', # For D domain
'ddoc.autodoc', # For D autodoc, requires 'ddoc.d'
]
my_d_module.rst
:
.. D domain
.. d:function::
int foo(string file)
int foo(int bar)
:name: foo
.. D autodoc
.. automodule:: my_library.submodule