index.rst文档内容:
.. newproject documentation master file, created by
sphinx-quickstart on Mon Dec 25 11:23:47 2017.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
欢迎来到newproject的文档
======================================
.. toctree::
:maxdepth: 2
.. automodule:: test
:members:
其他
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
conf.py文档中添加
import os
import sys
sys.path.insert(0, os.path.abspath('.'))//将当前路径的模块导入环境变量
language = 'zh_CN' //更改默认的语言
在根目录输入make html
生成静态网页