mock drf import for env file

use colon fences
This commit is contained in:
Ciarán Ainsworth 2022-08-02 11:44:31 +02:00
parent 6f83ff69d7
commit f0ca74a9ec
1 changed files with 12 additions and 2 deletions

View File

@ -59,6 +59,7 @@ autodoc_mock_imports = [
"ldap", "ldap",
"persisting_theory", "persisting_theory",
"rest_framework", "rest_framework",
"drf_spectacular",
] ]
add_module_names = False add_module_names = False
# Add any paths that contain templates here, relative to this directory. # Add any paths that contain templates here, relative to this directory.
@ -73,6 +74,9 @@ source_suffix = ".rst"
# The root toctree document. # The root toctree document.
root_doc = "index" root_doc = "index"
# Enable colon fences
myst_enable_extensions = ["colon_fence"]
# General information about the project. # General information about the project.
year = datetime.datetime.now().year year = datetime.datetime.now().year
project = "funkwhale" project = "funkwhale"
@ -115,7 +119,7 @@ html_theme = "sphinx_rtd_theme"
# further. For a list of options available for each theme, see the # further. For a list of options available for each theme, see the
# documentation. # documentation.
# #
#html_theme_options = {} # html_theme_options = {}
html_context = { html_context = {
"display_gitlab": True, "display_gitlab": True,
"gitlab_host": "dev.funkwhale.audio", "gitlab_host": "dev.funkwhale.audio",
@ -160,7 +164,13 @@ latex_elements = {
# (source start file, target name, title, # (source start file, target name, title,
# author, documentclass [howto, manual, or own class]). # author, documentclass [howto, manual, or own class]).
latex_documents = [ latex_documents = [
(root_doc, "funkwhale.tex", "funkwhale Documentation", "The Funkwhale Collective", "manual") (
root_doc,
"funkwhale.tex",
"funkwhale Documentation",
"The Funkwhale Collective",
"manual",
)
] ]