-
Notifications
You must be signed in to change notification settings - Fork 817
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix the bug in building the the docs (#104)
* fix the bug in building the the docs * update the version of the required Paddle
- Loading branch information
1 parent
fb9af35
commit 2f11d0c
Showing
2 changed files
with
2 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,7 @@ | |
author = '[email protected]' | ||
|
||
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters