Skip to content

Commit

Permalink
fix the bug in building the the docs (#104)
Browse files Browse the repository at this point in the history
* fix the bug in building  the the docs

* update the version of the required Paddle
  • Loading branch information
TomorrowIsAnOtherDay authored Jul 31, 2019
1 parent fb9af35 commit 2f11d0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
15 changes: 1 addition & 14 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
author = '[email protected]'

# The full version, including alpha/beta/rc tags
autodoc_mock_imports = ['paddle']

# -- General configuration ---------------------------------------------------

Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------------
Expand Down

0 comments on commit 2f11d0c

Please sign in to comment.