forked from divio/divio-cloud-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conf.py
148 lines (118 loc) · 3.72 KB
/
conf.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# Configuration file for the Sphinx documentation builder.
#
# Full list of options can be found in the Sphinx documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
#
# -- sys.path preparation ----------------------------------------------------
#
import os
import sys
import datetime
sys.path.insert(0, os.path.abspath("."))
#
# -- Project information ------------------------------------------------------
#
# Add any paths that contain templates here, relative to this directory.
# templates_path = ['_templates']
project = "Divio Documentation"
full_title = project
copyright = f"{datetime.date.today().year} Divio Technologies AB"
author = "Divio"
version = "2.0"
release = version
#
# -- General configuration ----------------------------------------------------
#
extensions = [
"extensions",
"sphinx.ext.autodoc",
"sphinx.ext.intersphinx",
"sphinx.ext.todo",
"sphinx.ext.viewcode",
"sphinxcontrib.mermaid",
"sphinx_inline_tabs",
"sphinx_click",
"notfound.extension",
"sphinx_reredirects",
]
if "spelling" in sys.argv:
extensions.append("sphinxcontrib.spelling")
mermaid_version="8.11.4"
#
# -- Options for intersphinx --------------------------------------------------
#
intersphinx_mapping = {
"python": ("https://docs.python.org/3", None),
"django": (
"https://docs.djangoproject.com/en/2.2/",
"https://docs.djangoproject.com/en/2.2/_objects/"
),
"django-cms": ("https://docs.django-cms.org/en/latest/", None),
"celery": ("https://docs.celeryproject.org/en/stable/", None),
"whitenoise": ("https://whitenoise.evans.io/en/stable/", None),
"flask": ("https://flask.palletsprojects.com/", None),
}
#
# -- Options for the theme ----------------------------------------------------
#
html_theme = "furo"
html_theme_options = {
"show_cloud_banner": False,
"segment_id": "FT34iqltJg6YdIX5fcyIt5J035FmSAAq",
"style_external_links": True,
"navigation_depth": 2,
"sidebar_hide_name": True,
}
#
# -- Options for HTML output --------------------------------------------------
#
html_title = full_title
html_help_basename = "DivioDocumentation"
html_static_path = ["_static"]
html_css_files = [
"css/custom.css",
"styles/furo.css",
]
#
# -- Options for Sphinx -------------------------------------------------------
#
source_suffix = ".rst"
master_doc = "index"
language = None
exclude_patterns = ["README.rst", "_build", "Thumbs.db", ".DS_Store", "env", "**/includes"]
on_rtd = os.environ.get("READTHEDOCS", None) == "True"
#
# -- Options for spelling -----------------------------------------------------
#
spelling_lang = "en_GB"
spelling_word_list_filename = "spelling_wordlist"
spelling_ignore_pypi_package_names = True
#
# -- Options for latex output -------------------------------------------------
#
latex_documents = [
(master_doc, html_help_basename + ".tex", full_title, author, "manual"),
]
#
# -- Options for manual page output -------------------------------------------
#
man_pages = [
(master_doc, html_help_basename, full_title, [author], 1)
]
#
# -- Options for TODOs --------------------------------------------------------
#
todo_include_todos = True
todo_link_only = True
todo_emit_warnings = False
#
# -- Redirects for broken links -----------------------------------------------
#
# The following represents a valid redirect pattern example for renaming/deleting a file
# inside the how-to folder called configure-settings.rst to django-configure-settings.rst
# that must be included inside redirects dictionary below.
# Redirect pattern:
# "how-to/configure-settings/index.html": "../django-configure-settings",
redirects = {
"how-to/configure-settings/index.html": "../django-configure-settings",
}