transport-accessibility/docs/source/conf.py
Johannes Randerath 3853d25c1e Added LICENSE
- Code uses AGPL
- Docs use GNU FDL
2024-07-08 22:10:53 +02:00

49 lines
1.6 KiB
Python

# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
# This file is part of the transport-accessibility project's documentation.
# Copyright (C) 2024 Janek Kiljanski, Johannes Randerath.
# See the file license.rst for copying information.
import os
import sys
import django
sys.path.insert(0, os.path.abspath('../../transport_accessibility'))
os.environ['DJANGO_SETTINGS_MODULE'] = 'transport_accessibility.settings'
django.setup()
project = 'Transport Accessibility'
copyright = '2024, Jan Kiljanski and Johannes Randerath'
author = 'Jan Kiljanski and Johannes Randerath'
release = '0.2'
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.napoleon',
'sphinx.ext.autosummary',
]
templates_path = ['_templates']
exclude_patterns = ['**/migrations/*', 'manage.py', 'settings.py', 'admin.py', ]
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
# html_theme = 'alabaster'
# html_theme = 'sphinx_rtd_theme'
html_theme = 'sphinx_book_theme'
html_static_path = ['_static']
autosummary_generate = True