2021-11-08 15:49:41 +00:00
|
|
|
import configurations
|
2012-07-21 13:56:04 +00:00
|
|
|
|
2021-11-08 15:49:41 +00:00
|
|
|
# -- Project information -----------------------------------------------------
|
2021-01-18 09:56:47 +00:00
|
|
|
project = 'django-configurations'
|
2021-10-27 02:09:50 +00:00
|
|
|
copyright = '2012-2021, Jannis Leidel and other contributors'
|
2021-11-08 15:49:41 +00:00
|
|
|
author = 'Jannis Leidel and other contributors'
|
2012-07-21 13:56:04 +00:00
|
|
|
|
2021-11-08 15:49:41 +00:00
|
|
|
release = configurations.__version__
|
2019-12-03 12:01:17 +00:00
|
|
|
version = ".".join(release.split(".")[:2])
|
2012-07-21 13:56:04 +00:00
|
|
|
|
2021-11-08 15:49:41 +00:00
|
|
|
# -- General configuration ---------------------------------------------------
|
|
|
|
|
add_function_parentheses = False
|
|
|
|
|
add_module_names = False
|
2012-07-21 13:56:04 +00:00
|
|
|
|
2021-11-08 15:49:41 +00:00
|
|
|
extensions = [
|
|
|
|
|
'sphinx.ext.autodoc',
|
|
|
|
|
'sphinx.ext.intersphinx',
|
|
|
|
|
'sphinx.ext.viewcode',
|
2012-07-21 13:56:04 +00:00
|
|
|
]
|
|
|
|
|
|
2021-11-08 15:49:41 +00:00
|
|
|
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
|
2012-07-21 13:56:04 +00:00
|
|
|
|
2013-07-27 10:37:28 +00:00
|
|
|
intersphinx_mapping = {
|
2021-11-08 14:48:07 +00:00
|
|
|
'python': ('https://docs.python.org/3', None),
|
2021-11-08 15:49:41 +00:00
|
|
|
'sphinx': ('https://www.sphinx-doc.org/en/master', None),
|
|
|
|
|
'django': ('https://docs.djangoproject.com/en/dev',
|
2021-11-08 14:48:07 +00:00
|
|
|
'https://docs.djangoproject.com/en/dev/_objects/'),
|
2013-07-27 10:37:28 +00:00
|
|
|
}
|
|
|
|
|
|
2021-11-08 15:49:41 +00:00
|
|
|
# -- Options for HTML output -------------------------------------------------
|
|
|
|
|
html_theme = 'sphinx_rtd_theme'
|
|
|
|
|
|
|
|
|
|
# -- Options for Epub output ---------------------------------------------------
|
|
|
|
|
epub_title = project
|
|
|
|
|
epub_author = author
|
|
|
|
|
epub_publisher = author
|
|
|
|
|
epub_copyright = copyright
|
|
|
|
|
|
|
|
|
|
# -- Options for LaTeX output --------------------------------------------------
|
|
|
|
|
latex_documents = [
|
|
|
|
|
# (source start file, target name, title, author, documentclass)
|
|
|
|
|
('index', 'django-configurations.tex',
|
|
|
|
|
'django-configurations Documentation', author, 'manual'),
|
|
|
|
|
]
|