2024-06-14 14:57:30 +00:00
|
|
|
# Configuration file for the Sphinx documentation builder.
|
2014-11-25 20:58:02 +00:00
|
|
|
#
|
2024-06-14 14:57:30 +00:00
|
|
|
# For the full list of built-in configuration values, see the documentation:
|
|
|
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html
|
|
|
|
|
|
2014-11-25 20:58:02 +00:00
|
|
|
import sys
|
|
|
|
|
import os
|
2024-06-14 14:57:30 +00:00
|
|
|
from datetime import datetime
|
2014-11-25 20:58:02 +00:00
|
|
|
|
|
|
|
|
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tests.settings')
|
|
|
|
|
|
|
|
|
|
# If extensions (or modules to document with autodoc) are in another directory,
|
|
|
|
|
# add these directories to sys.path here. If the directory is relative to the
|
|
|
|
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
|
|
|
|
sys.path.insert(0, os.path.abspath('extensions'))
|
|
|
|
|
sys.path.insert(0, os.path.abspath('..'))
|
|
|
|
|
|
2024-06-14 14:57:30 +00:00
|
|
|
# -- Project information -----------------------------------------------------
|
|
|
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
|
2014-11-25 20:58:02 +00:00
|
|
|
|
2019-12-23 21:20:41 +00:00
|
|
|
project = 'django-constance'
|
2024-06-14 14:57:30 +00:00
|
|
|
project_copyright = datetime.now().year.__str__() + ', Jazzband'
|
|
|
|
|
# author = ''
|
2014-11-25 20:58:02 +00:00
|
|
|
|
2024-06-14 14:57:30 +00:00
|
|
|
# Use current version.
|
2014-11-25 20:58:02 +00:00
|
|
|
try:
|
|
|
|
|
from constance import __version__
|
|
|
|
|
# The short X.Y version.
|
|
|
|
|
version = '.'.join(__version__.split('.')[:2])
|
|
|
|
|
# The full version, including alpha/beta/rc tags.
|
|
|
|
|
release = __version__
|
|
|
|
|
except ImportError:
|
|
|
|
|
version = release = 'dev'
|
|
|
|
|
|
2024-06-14 14:57:30 +00:00
|
|
|
# -- General configuration ------------------------------------------------
|
|
|
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
|
2014-11-25 20:58:02 +00:00
|
|
|
|
2024-06-14 14:57:30 +00:00
|
|
|
extensions = [
|
|
|
|
|
'sphinx.ext.intersphinx',
|
|
|
|
|
'sphinx.ext.todo',
|
|
|
|
|
'sphinx_search.extension',
|
|
|
|
|
'settings',
|
|
|
|
|
]
|
2014-11-25 20:58:02 +00:00
|
|
|
|
2024-06-14 14:57:30 +00:00
|
|
|
templates_path = ['_templates']
|
|
|
|
|
source_suffix = '.rst'
|
|
|
|
|
root_doc = 'index'
|
|
|
|
|
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
|
2014-11-25 20:58:02 +00:00
|
|
|
pygments_style = 'sphinx'
|
2024-06-14 14:57:30 +00:00
|
|
|
html_last_updated_fmt = ''
|
2014-11-25 20:58:02 +00:00
|
|
|
|
2024-06-14 14:57:30 +00:00
|
|
|
# -- Options for HTML output -------------------------------------------------
|
|
|
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
|
2014-11-25 20:58:02 +00:00
|
|
|
|
2015-09-24 10:46:52 +00:00
|
|
|
html_theme = 'sphinx_rtd_theme'
|
2014-11-25 20:58:02 +00:00
|
|
|
html_static_path = ['_static']
|
|
|
|
|
htmlhelp_basename = 'django-constancedoc'
|
|
|
|
|
|
|
|
|
|
# -- Options for LaTeX output ---------------------------------------------
|
2024-06-14 14:57:30 +00:00
|
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-latex-output
|
2014-11-25 20:58:02 +00:00
|
|
|
|
2024-06-14 14:57:30 +00:00
|
|
|
latex_elements = {}
|
2014-11-25 20:58:02 +00:00
|
|
|
|
|
|
|
|
latex_documents = [
|
2019-12-23 21:20:41 +00:00
|
|
|
('index', 'django-constance.tex', 'django-constance Documentation',
|
|
|
|
|
'Jazzband', 'manual'),
|
2014-11-25 20:58:02 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
# -- Options for manual page output ---------------------------------------
|
2024-06-14 14:57:30 +00:00
|
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-manual-page-output
|
2014-11-25 20:58:02 +00:00
|
|
|
|
|
|
|
|
man_pages = [
|
2019-12-23 21:20:41 +00:00
|
|
|
('index', 'django-constance', 'django-constance Documentation',
|
|
|
|
|
['Jazzband'], 1)
|
2014-11-25 20:58:02 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
# -- Options for Texinfo output -------------------------------------------
|
2024-06-14 14:57:30 +00:00
|
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-texinfo-output
|
2014-11-25 20:58:02 +00:00
|
|
|
|
|
|
|
|
texinfo_documents = [
|
2019-12-23 21:20:41 +00:00
|
|
|
('index', 'django-constance', 'django-constance Documentation',
|
|
|
|
|
'Jazzband', 'django-constance', 'One line description of project.',
|
2014-11-25 20:58:02 +00:00
|
|
|
'Miscellaneous'),
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
# Example configuration for intersphinx: refer to the Python standard library.
|
|
|
|
|
intersphinx_mapping = {
|
2024-06-14 14:57:30 +00:00
|
|
|
'python': ('https://docs.python.org/3', None),
|
2022-10-10 21:08:54 +00:00
|
|
|
'django': ('https://docs.djangoproject.com/en/dev/',
|
|
|
|
|
'https://docs.djangoproject.com/en/dev/_objects/'),
|
2014-11-25 20:58:02 +00:00
|
|
|
}
|
2024-06-14 14:57:30 +00:00
|
|
|
|