django-select2/docs/conf.py

54 lines
1.7 KiB
Python
Raw Normal View History

2015-09-25 20:11:50 +00:00
import datetime
import os
import sys
2012-08-31 11:19:13 +00:00
# This is needed since django_select2 requires django model modules
# and those modules assume that django settings is configured and
# have proper DB settings.
# Using this we give a proper environment with working django settings.
2015-09-25 20:11:50 +00:00
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.testapp.settings")
2012-08-31 11:19:13 +00:00
# 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.
2015-09-25 20:11:50 +00:00
sys.path.insert(0, os.path.abspath('../tests.testapp'))
2012-08-31 11:19:13 +00:00
sys.path.insert(0, os.path.abspath('..'))
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.napoleon',
'sphinx.ext.inheritance_diagram',
'sphinx.ext.intersphinx',
'sphinx.ext.viewcode',
'sphinxcontrib.spelling',
]
2012-08-31 11:19:13 +00:00
intersphinx_mapping = {
2018-08-18 11:52:54 +00:00
'python': ('http://docs.python.org/3', None),
'django': ('https://docs.djangoproject.com/en/stable/',
'https://docs.djangoproject.com/en/stable/_objects/'),
2012-08-31 11:19:13 +00:00
}
# spell check
spelling_word_list_filename = 'spelling_wordlist.txt'
spelling_show_suggestions = True
2012-08-31 11:19:13 +00:00
master_doc = 'index'
# General information about the project.
2018-08-18 11:52:54 +00:00
project = 'django-select2'
year = datetime.datetime.now().strftime("%Y")
copyright = '%s, Johannes Hoppe' % year
2012-08-31 11:19:13 +00:00
autodoc_default_flags = ['members', 'show-inheritance']
autodoc_member_order = 'bysource'
2015-09-25 20:11:50 +00:00
inheritance_graph_attrs = dict(rankdir='TB')
2012-09-10 06:32:58 +00:00
2015-09-25 20:11:50 +00:00
inheritance_node_attrs = dict(shape='rect', fontsize=14, fillcolor='gray90',
color='gray30', style='filled')
2012-09-10 06:32:58 +00:00
inheritance_edge_attrs = dict(penwidth=0.75)
2018-08-18 11:52:54 +00:00
html_theme = 'sphinx_rtd_theme'