aboutsummaryrefslogtreecommitdiffstats
path: root/docs/conf.py
diff options
context:
space:
mode:
authorErik Faye-Lund <[email protected]>2020-06-30 12:44:19 +0200
committerMarge Bot <[email protected]>2020-07-07 10:22:08 +0000
commit2f813981878614ce9567e981dbcaa1cd93dff187 (patch)
tree66cecf83b0d7a13d397dfbd2de3701a3d4ebee4e /docs/conf.py
parentcb11900cb6de9a2efdbb5924622859dafe35ac98 (diff)
merge gallium docs into main docs
Reviewed-by: Eric Engestrom <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5706>
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/docs/conf.py b/docs/conf.py
index fe14ba731f0..27367654d47 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -20,9 +20,13 @@ import sphinx_rtd_theme
# 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.
#
-# import os
-# import sys
-# sys.path.insert(0, os.path.abspath('.'))
+import os
+import sys
+
+# 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.
+sys.path.append(os.path.abspath('_exts'))
# -- General configuration ------------------------------------------------
@@ -34,7 +38,7 @@ import sphinx_rtd_theme
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
-extensions = []
+extensions = ['sphinx.ext.graphviz', 'formatting']
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']