mirror of
https://github.com/sprockets/sprockets.mixins.http.git
synced 2024-11-15 03:00:29 +00:00
31 lines
925 B
Python
31 lines
925 B
Python
#!/usr/bin/env python
|
|
import sphinx_rtd_theme
|
|
|
|
from sprockets.mixins import http
|
|
|
|
needs_sphinx = '1.0'
|
|
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx']
|
|
templates_path = []
|
|
source_suffix = '.rst'
|
|
master_doc = 'index'
|
|
project = 'sprockets.mixins.http'
|
|
author = 'AWeber Communications'
|
|
copyright = '2017, AWeber Communications'
|
|
version = http.__version__
|
|
release = '.'.join(version.split('.')[:-1])
|
|
exclude_patterns = []
|
|
pygments_style = 'sphinx'
|
|
html_theme = 'sphinx_rtd_theme'
|
|
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
|
|
intersphinx_mapping = {
|
|
'python': ('https://docs.python.org/', None),
|
|
'tornado': ('http://www.tornadoweb.org/en/stable/', None),
|
|
}
|
|
|
|
|
|
def no_namedtuple_attrib_docstring(app, objtype, name, member, keep, options):
|
|
return objtype == 'class' and name in http.HTTPResponse._fields
|
|
|
|
|
|
def setup(app):
|
|
app.connect('autodoc-skip-member', no_namedtuple_attrib_docstring)
|