radeonsi: remove redundant no-signed-zero-fp-math LLVM attribute
[mesa.git] / docs / conf.py
index 98f6060132be8d71f7e5bc50ffcafa90c09d139f..0037037e4aeb5b72d052420c954933bbea97a721 100644 (file)
@@ -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', 'redirects']
 
 # Add any paths that contain templates here, relative to this directory.
 templates_path = ['_templates']
@@ -83,6 +87,10 @@ pygments_style = 'sphinx'
 # If true, `todo` and `todoList` produce output, else they produce nothing.
 todo_include_todos = False
 
+# Disable highlighting unless a language is specified, otherwise we'll get
+# python keywords highlit in literal blocks.
+highlight_language = "none"
+
 
 # -- Options for HTML output ----------------------------------------------
 
@@ -91,17 +99,33 @@ todo_include_todos = False
 #
 html_theme = 'sphinx_rtd_theme'
 
+html_favicon = "favicon.ico"
+
 # Theme options are theme-specific and customize the look and feel of a theme
 # further.  For a list of options available for each theme, see the
 # documentation.
 #
-# html_theme_options = {}
+html_theme_options = {
+  'display_version': False,
+}
+
+html_copy_source = False
 
 # Add any paths that contain custom static files (such as style sheets) here,
 # relative to this directory. They are copied after the builtin static files,
 # so a file named "default.css" will overwrite the builtin "default.css".
 html_static_path = []
 
+html_extra_path = [
+  '_extra/',
+  'release-maintainers-keys.asc',
+  'features.txt',
+  'libGL.txt',
+  'README.UVD',
+  'README.VCE',
+  'README.WIN32',
+]
+
 
 # -- Options for HTMLHelp output ------------------------------------------
 
@@ -158,3 +182,7 @@ texinfo_documents = [
      author, 'TheMesa3DGraphicsLibrary', 'One line description of project.',
      'Miscellaneous'),
 ]
+
+# -- Options for Graphviz -------------------------------------------------
+
+graphviz_output_format = 'svg'