A community-maintained Python framework for creating mathematical animations.
Change docs to use viewcode instead of linkcode (#1297)
friedkeenan49b50cfe7833
diff --git a/docs/source/conf.py b/docs/source/conf.pyindex dd32d94f2..0beeac5ad 100644--- a/docs/source/conf.py+++ b/docs/source/conf.py@@ -54,7 +54,7 @@ extensions = ["sphinx.ext.autosummary","sphinx.ext.doctest","sphinx.ext.extlinks",- "sphinx.ext.linkcode",+ "sphinx.ext.viewcode","sphinxext.opengraph","manim_directive",]@@ -128,19 +128,6 @@ html_title = f"Manim Community v{manim.__version__}"html_css_files = ["custom.css"]-# source links to github-def linkcode_resolve(domain, info):- if domain != "py":- return None- if not info["module"]:- return None- filename = info["module"].replace(".", "/")- version = os.getenv("READTHEDOCS_VERSION", "master")- if version == "latest" or version == "stable":- version = "master"- return f"https://github.com/ManimCommunity/manim/blob/{version}/{filename}.py"--# external linksextlinks = {"issue": ("https://github.com/ManimCommunity/manim/issues/%s", "issue "),