diff --git a/docs/conf.py b/docs/conf.py index 315394670a99a645f58aa0034f90924d74816c1a..e4e009f0d8d2edc5ae158b0ab5d680c9c45fcdc2 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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 diff --git a/docs/installation.rst b/docs/installation.rst index 8cad985923ee617ce12125df729533f794abfc78..9685bb26a602e1d8bc356d5142eef099ef703433 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -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 -------------