実行時
sphinx-build . html/
私のdoc/
ディレクトリでは、次の出力が得られます。
$ sphinx-build . html/
Running Sphinx v0.6.4
No builder selected, using default: html
loading pickled environment... done
building [html]: targets for 0 source files that are out of date
updating environment: 0 added, 1 changed, 0 removed
reading sources... [100%] index
reST markup error:
HIDDEN/PATH/matplotlib_visualization.py:docstring of simulator.extensions.matplotlib_visualization.beta:20: (SEVERE/4) Unexpected section title.
このファイルにはインポートがあり、少し調査したところ、sphinx が使用する RST マークアップの文書化numpy
の方法に問題があるようです。numpy
numpy インポートを取り出すと、html が正常にビルドされます。
この問題を解決する最善の方法は何ですか?