未验证 提交 2f11d0c5 编写于 作者: B Bo Zhou 提交者: GitHub

fix the bug in building the the docs (#104)

* fix the bug in building  the the docs

* update the version of the required Paddle
上级 fb9af353
......@@ -40,6 +40,7 @@ copyright = '2019, nlp-ol@baidu.com'
author = 'nlp-ol@baidu.com'
# The full version, including alpha/beta/rc tags
autodoc_mock_imports = ['paddle']
# -- General configuration ---------------------------------------------------
......@@ -95,22 +96,8 @@ def skip(app, what, name, obj, would_skip, options):
return would_skip
aliases = dict()
aliases['parl.core.fluid.agent.Agent'] = ['parl.agent']
def parl_class_docstring(app, what, name, obj, options, lines):
if what != 'class':
return
obj = parl.Agent
name = parl.Agent
#lines[0] = ['wohenhao']
def setup(app):
app.connect("autodoc-skip-member", skip)
app.connect("autodoc-process-docstring", parl_class_docstring)
add_module_names = False
......@@ -3,7 +3,7 @@ Installation
Dependencies
-------------------
- Python 2.7 or 3.5+.
- PaddlePaddle >=1.2.1 (**Optional**, if you only want to use APIs related to parallelization alone)
- PaddlePaddle >=1.5.1 (**Optional**, if you only want to use APIs related to parallelization alone)
Install
-------------
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册