mirror of
https://github.com/sprockets/cookiecutter-sprockets.git
synced 2024-11-23 19:29:52 +00:00
30 lines
842 B
Python
30 lines
842 B
Python
|
#!/usr/bin/env python
|
||
|
import sphinx_rtd_theme
|
||
|
|
||
|
from sprockets.{{cookiecutter.project_name}} import version_info, __version__
|
||
|
|
||
|
|
||
|
needs_sphinx = '1.0'
|
||
|
extensions = [
|
||
|
'sphinx.ext.autodoc',
|
||
|
'sphinx.ext.intersphinx',
|
||
|
'sphinxcontrib.httpdomain',
|
||
|
]
|
||
|
templates_path = []
|
||
|
source_suffix = '.rst'
|
||
|
master_doc = 'index'
|
||
|
project = '{{cookiecutter.project_name}}'
|
||
|
copyright = '{{cookiecutter.year}}, {{cookiecutter.full_name}}'
|
||
|
version = __version__
|
||
|
release = __version__
|
||
|
if len(version_info) > 3:
|
||
|
release += '-{0}'.format(str(v) for v in version_info[3:])
|
||
|
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),
|
||
|
'requests': ('https://requests.readthedocs.org/en/latest/', None),
|
||
|
}
|