2018-11-28 16:46:08 +00:00
|
|
|
import pkg_resources
|
2015-06-08 20:28:30 +00:00
|
|
|
|
|
|
|
needs_sphinx = '1.0'
|
|
|
|
extensions = ['sphinx.ext.autodoc',
|
|
|
|
'sphinx.ext.viewcode',
|
2015-08-19 22:29:32 +00:00
|
|
|
'sphinx.ext.intersphinx',
|
2021-09-12 13:19:59 +00:00
|
|
|
'sphinx.ext.extlinks',
|
2015-08-19 22:29:32 +00:00
|
|
|
'sphinxcontrib.autohttp.tornado']
|
2015-06-08 20:28:30 +00:00
|
|
|
master_doc = 'index'
|
2015-09-09 22:26:33 +00:00
|
|
|
project = 'sprockets.mixins.mediatype'
|
2018-11-28 21:26:35 +00:00
|
|
|
copyright = '2015-2018, AWeber Communications'
|
2018-11-28 16:46:08 +00:00
|
|
|
release = pkg_resources.get_distribution('sprockets.mixins.mediatype').version
|
2015-06-08 20:28:30 +00:00
|
|
|
version = '.'.join(release.split('.')[0:1])
|
|
|
|
|
2015-08-19 22:29:32 +00:00
|
|
|
html_style = 'custom.css'
|
|
|
|
html_static_path = ['static']
|
|
|
|
html_sidebars = {
|
|
|
|
'**': ['about.html', 'navigation.html'],
|
|
|
|
}
|
|
|
|
html_theme_options = {
|
|
|
|
'github_user': 'sprockets',
|
2018-12-05 04:24:06 +00:00
|
|
|
'github_repo': 'sprockets.mixins.mediatype',
|
2015-08-19 22:29:32 +00:00
|
|
|
'description': 'Content-Type negotation mix-in',
|
|
|
|
'github_banner': True,
|
|
|
|
'travis_button': True,
|
|
|
|
'sidebar_width': '230px',
|
2016-02-24 19:47:53 +00:00
|
|
|
'codecov_button': True,
|
2015-08-19 22:29:32 +00:00
|
|
|
}
|
|
|
|
|
2015-06-08 20:28:30 +00:00
|
|
|
intersphinx_mapping = {
|
2016-01-10 21:05:25 +00:00
|
|
|
'python': ('https://docs.python.org/3', None),
|
2015-06-08 20:28:30 +00:00
|
|
|
'requests': ('https://requests.readthedocs.org/en/latest/', None),
|
|
|
|
'sprockets': ('https://sprockets.readthedocs.org/en/latest/', None),
|
2015-08-19 22:29:32 +00:00
|
|
|
'tornado': ('http://tornadoweb.org/en/latest/', None),
|
2015-06-08 20:28:30 +00:00
|
|
|
}
|
2021-09-12 13:19:59 +00:00
|
|
|
|
|
|
|
# https://www.sphinx-doc.org/en/master/usage/extensions/extlinks.html
|
|
|
|
extlinks = {
|
|
|
|
'compare': ('https://github.com/sprockets/sprockets.mixins.mediatype'
|
|
|
|
'/compare/%s', '%s')
|
|
|
|
}
|