I'm having trouble using section headings in docstrings included via autodoc.
See http://web.student.chalmers.se/~frejohl/docfail/ for a minimal
example (testfun.py is assumed to be in Python's path).
The following happens:
==============
C:\source\docfail>build.py
No builder selected, using default: html
Sphinx v0.4.3, building html
trying to load pickled env... done
building [html]: targets for 1 source files that are out of date
updating environment: 0 added, 1 changed, 0 removed
reading... index reST markup error:
c:\source\docfail\testfun.py:docstring of testfun.fun:5: (SEVERE/4)
Unexpected section title.
Notes
-----
==============
This is with Sphinx 4.3 on Windows.
Fredrik
Yes, I was looking at the numpy documentation. Is it possible to
accomplish something similar with just autodoc?
Fredrik
Nope, the numpy standard needs to be preprocessed to work with autodoc. Just
use the numpydoc extension and it'll do the job for you.