From f0ca74a9ec50ea87fc4f4dd3db8ca500eda51169 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciar=C3=A1n=20Ainsworth?= Date: Tue, 2 Aug 2022 11:44:31 +0200 Subject: [PATCH] mock drf import for env file use colon fences --- docs/conf.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 99f071b94..11c0b2310 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -59,6 +59,7 @@ autodoc_mock_imports = [ "ldap", "persisting_theory", "rest_framework", + "drf_spectacular", ] add_module_names = False # Add any paths that contain templates here, relative to this directory. @@ -73,6 +74,9 @@ source_suffix = ".rst" # The root toctree document. root_doc = "index" +# Enable colon fences +myst_enable_extensions = ["colon_fence"] + # General information about the project. year = datetime.datetime.now().year project = "funkwhale" @@ -115,7 +119,7 @@ html_theme = "sphinx_rtd_theme" # further. For a list of options available for each theme, see the # documentation. # -#html_theme_options = {} +# html_theme_options = {} html_context = { "display_gitlab": True, "gitlab_host": "dev.funkwhale.audio", @@ -160,7 +164,13 @@ latex_elements = { # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ - (root_doc, "funkwhale.tex", "funkwhale Documentation", "The Funkwhale Collective", "manual") + ( + root_doc, + "funkwhale.tex", + "funkwhale Documentation", + "The Funkwhale Collective", + "manual", + ) ]