From 24f60aa04aa27cacf134b9b8434e24854aec67f4 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Fri, 25 Jun 2021 12:59:33 -0500 Subject: [PATCH] Use downloaded shared sphinxconfig --- doc/conf.py | 50 ++++++-------------------------------------------- 1 file changed, 6 insertions(+), 44 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index b02cde3..05ac747 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -1,26 +1,11 @@ -extensions = ["sphinx.ext.autodoc", - "sphinx.ext.doctest", - "sphinx.ext.intersphinx", - "sphinx.ext.mathjax", - "sphinx.ext.viewcode", - "sphinx_copybutton", - ] +from urllib.request import urlopen -# Add any paths that contain templates here, relative to this directory. -templates_path = ["_templates"] +_conf_url = \ + "https://raw.githubusercontent.com/inducer/sphinxconfig/main/sphinxconfig.py" +with urlopen(_conf_url) as _inf: + exec(compile(_inf.read(), _conf_url, "exec"), globals()) -# The suffix(es) of source filenames. -# You can specify multiple suffix as a list of string: -# -# source_suffix = ['.rst', '.md'] -source_suffix = ".rst" - -# The master toctree document. -master_doc = "index" - -# General information about the project. -project = "pytools" -copyright = "2017, Andreas Kloeckner" +copyright = "2009-21, Andreas Kloeckner" author = "Andreas Kloeckner" # The version info for the project you're documenting, acts as replacement for @@ -34,37 +19,14 @@ exec(compile(open("../pytools/version.py").read(), "../pytools/version.py", "exe version = ".".join(str(x) for x in ver_dic["VERSION"]) release = ver_dic["VERSION_TEXT"] -# The language for content autogenerated by Sphinx. Refer to documentation -# for a list of supported languages. -# -# This is also used if you do content translation via gettext catalogs. -# Usually you set "language" from the command line for these cases. -language = None - # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. # This patterns also effect to html_static_path and html_extra_path exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] -# The name of the Pygments (syntax highlighting) style to use. -pygments_style = "sphinx" - -# If true, `todo` and `todoList` produce output, else they produce nothing. -todo_include_todos = False - - -# -- Options for HTML output ---------------------------------------------- - -# The theme to use for HTML and HTML Help pages. See the documentation for -# a list of builtin themes. -# -html_theme = "furo" - intersphinx_mapping = { "https://docs.python.org/3": None, "https://numpy.org/doc/stable": None, "https://documen.tician.de/pymbolic/": None, "https://documen.tician.de/loopy/": None, } - -autoclass_content = "class" -- GitLab