mirror of
https://github.com/sprockets/sprockets.mixins.mediatype.git
synced 2024-12-01 03:00:23 +00:00
00b87a43cf
This allows us to remove the ImportError hack from __init__.py. It also simplifies how the package is versioned - deriving it solely from the repository tag. Both version_info and __version__ have been removed with this change. Given how these are a unofficial-standard at best, I've found it safer to always use pkg_resources to determine the version when I need to.
34 lines
1.1 KiB
Python
34 lines
1.1 KiB
Python
import pkg_resources
|
|
|
|
needs_sphinx = '1.0'
|
|
extensions = ['sphinx.ext.autodoc',
|
|
'sphinx.ext.viewcode',
|
|
'sphinx.ext.intersphinx',
|
|
'sphinxcontrib.autohttp.tornado']
|
|
master_doc = 'index'
|
|
project = 'sprockets.mixins.mediatype'
|
|
copyright = '2015-2016, AWeber Communications'
|
|
release = pkg_resources.get_distribution('sprockets.mixins.mediatype').version
|
|
version = '.'.join(release.split('.')[0:1])
|
|
|
|
html_style = 'custom.css'
|
|
html_static_path = ['static']
|
|
html_sidebars = {
|
|
'**': ['about.html', 'navigation.html'],
|
|
}
|
|
html_theme_options = {
|
|
'github_user': 'sprockets',
|
|
'github_repo': 'sprockets.mixins.media_type',
|
|
'description': 'Content-Type negotation mix-in',
|
|
'github_banner': True,
|
|
'travis_button': True,
|
|
'sidebar_width': '230px',
|
|
'codecov_button': True,
|
|
}
|
|
|
|
intersphinx_mapping = {
|
|
'python': ('https://docs.python.org/3', None),
|
|
'requests': ('https://requests.readthedocs.org/en/latest/', None),
|
|
'sprockets': ('https://sprockets.readthedocs.org/en/latest/', None),
|
|
'tornado': ('http://tornadoweb.org/en/latest/', None),
|
|
}
|