sprockets.mixins.http/docs/conf.py
2017-04-26 22:56:54 -04:00

32 lines
942 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):
if objtype == 'class' and name in http.HTTPResponse._fields:
return True
def setup(app):
app.connect('autodoc-skip-member', no_namedtuple_attrib_docstring)