Uh oh!
There was an error while loading. Please reload this page.
forked from PegasusWang/python-web-guide
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconf.py
More file actions
Latest commit
executable file
·85 lines (64 loc) · 2.42 KB
/
Copy pathconf.py
File metadata and controls
executable file
·85 lines (64 loc) · 2.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Ensure we get the local copy of tornado instead of what's on the standard path
importos
importsys
sys.path.insert(0, os.path.abspath(".."))
importsphinx.environment
fromdocutils.utilsimportget_source_line
def_warn_node(self, msg, node, **kw):
""" Monkey patch to ignore specific errors """
ifnotmsg.startswith(('py:obj reference target not found', 'nonlocal image URI found')):
self._warnfunc(msg, '%s:%s'%get_source_line(node))
sphinx.environment.BuildEnvironment.warn_node=_warn_node
master_doc="index"
project="python-web-guide"
copyright="2018, PegasusWang"
version=release="0.1"
extensions= [
"sphinx.ext.autodoc",
"sphinx.ext.coverage",
"sphinx.ext.extlinks",
"sphinx.ext.intersphinx",
"sphinx.ext.viewcode",
]
primary_domain='py'
default_role='py:obj'
highlight_language="none"
autodoc_member_order="bysource"
autoclass_content="both"
# Without this line sphinx includes a copy of object.__init__'s docstring
# on any class that doesn't define __init__.
# https://bitbucket.org/birkenfeld/sphinx/issue/1337/autoclass_content-both-uses-object__init__
autodoc_docstring_signature=False
coverage_skip_undoc_in_source=True
coverage_ignore_functions= [
# various modules
"doctests",
"main",
# tornado.escape
# parse_qs_bytes should probably be documented but it's complicated by
# having different implementations between py2 and py3.
"parse_qs_bytes",
# tornado.gen
"multi_future",
]
html_favicon='favicon.ico'
# nore README.rst
exclude_patterns= ['README.rst']
latex_documents= [
('documentation', 'manual', False),
]
# HACK: sphinx has limited support for substitutions with the |version|
# variable, but there doesn't appear to be any way to use this in a link
# target.
# http://stackoverflow.com/questions/1227037/substitutions-inside-links-in-rest-sphinx
# The extlink extension can be used to do link substitutions, but it requires a
# portion of the url to be literally contained in the document. Therefore,
# this link must be referenced as :current_tarball:`z`
on_rtd=os.environ.get('READTHEDOCS', None) =='True'
# On RTD we can't import sphinx_rtd_theme, but it will be applied by
# default anyway. This block will use the same theme when building locally
# as on RTD.
ifnoton_rtd:
importsphinx_rtd_theme
html_theme='sphinx_rtd_theme'
html_theme_path= [sphinx_rtd_theme.get_html_theme_path()]