Skip to content

Commit

Permalink
update doc theme
Browse files Browse the repository at this point in the history
  • Loading branch information
AlongWY committed Jun 17, 2020
1 parent 61472a7 commit a7bb943
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
16 changes: 1 addition & 15 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,6 @@
templates_path = ['templates']
language = 'zh'
exclude_patterns = []
html_theme = 'alabaster'
html_theme = 'sphinx_rtd_theme'
html_static_path = ['static']
source_suffix = ['.rst', '.md']


def autodoc_skip_member(app, what, name, obj, skip, options):
exclusions = (
'register', 'weak_register', 'hook',
'by_name', 'list_available', 'is_registered',
'iter_registered', 'from_params', 'default_implementation', 'forward'
)
exclude = name in exclusions
return skip or exclude


def setup(app):
app.connect('autodoc-skip-member', autodoc_skip_member)
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ pytest

#doc
sphinx
sphinx_rtd_theme

# Server
tornado~=6.0.4
Expand Down

0 comments on commit a7bb943

Please sign in to comment.