Skip to content
conf.py 1013 B
Newer Older
from __future__ import annotations

import os
Andreas Klöckner's avatar
Andreas Klöckner committed
import sys
from urllib.request import urlopen
_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())
Andreas Klöckner's avatar
Andreas Klöckner committed
sys.path.insert(0, os.path.abspath(".."))

os.environ["DJANGO_SETTINGS_MODULE"] = "relate.settings"

import django
Andreas Klöckner's avatar
Andreas Klöckner committed

Andreas Klöckner's avatar
Andreas Klöckner committed
intersphinx_mapping = {
    "python": ("https://docs.python.org/3/", None),
    "numpy": ("https://numpy.org/doc/stable/", None),
Andreas Klöckner's avatar
Andreas Klöckner committed
    "django": (
        "https://docs.djangoproject.com/en/dev/",
        "https://docs.djangoproject.com/en/dev/_objects/",
Andreas Klöckner's avatar
Andreas Klöckner committed
    ),
    "sympy": ("https://docs.sympy.org/latest", None),

    # https://github.com/dulwich/dulwich/issues/913 (a recurrence)
    "dulwich": (
        # "https://www.dulwich.io/docs/",
        "https://tiker.net/pub/dulwich-docs-stopgap/",
    None),
Andreas Klöckner's avatar
Andreas Klöckner committed
}
Andreas Klöckner's avatar
Andreas Klöckner committed

copyright = "2014-21, Andreas Kloeckner"
version = "2021.1"
Andreas Klöckner's avatar
Andreas Klöckner committed
release = version