Joh*_*acs 5 python documentation restructuredtext python-sphinx
我正在尝试学习狮身人面像,并坚持只是基本的例子.我make html
在源目录中的a上被给出以下错误.
Running Sphinx v1.1.3
loading pickled environment... not yet created
building [html]: targets for 2 source files that are out of date
updating environment: 2 added, 0 changed, 0 removed
reading sources... [100%] intro
/home/owner/Desktop/doc/index.rst:11: ERROR: Error in "toctree" directive:
invalid option block.
.. toctree::
:maxdepth: 2
intro.rst
looking for now-outdated files... none found
pickling environment... done
checking consistency... /home/owner/Desktop/doc/intro.rst:: WARNING: document isn't included in any toctree
done
preparing documents... done
writing output... [100%] intro
writing additional files... genindex search
copying static files... done
dumping search index... done
dumping object inventory... done
build succeeded, 2 warnings.
Build finished. The HTML pages are in _build/html.
Run Code Online (Sandbox Code Playgroud)
我也尝试过引用intro
而intro.rst
不是似乎都没有工作.index.rst
并intro.rst
在同一目录中.我用sphinx-quickstart
和所有默认选项制作了项目.
jte*_*ace 12
指令的选项与其内容之间需要一个空行.您也不需要文件扩展名.把它改成这个:
.. toctree::
:maxdepth: 2
intro
Run Code Online (Sandbox Code Playgroud)