File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change 54
54
"sphinx.ext.autosummary" ,
55
55
"sphinx.ext.doctest" ,
56
56
"sphinx.ext.extlinks" ,
57
- "sphinx.ext.linkcode " ,
57
+ "sphinx.ext.viewcode " ,
58
58
"sphinxext.opengraph" ,
59
59
"manim_directive" ,
60
60
]
128
128
html_css_files = ["custom.css" ]
129
129
130
130
131
- # source links to github
132
- def linkcode_resolve (domain , info ):
133
- if domain != "py" :
134
- return None
135
- if not info ["module" ]:
136
- return None
137
- filename = info ["module" ].replace ("." , "/" )
138
- version = os .getenv ("READTHEDOCS_VERSION" , "master" )
139
- if version == "latest" or version == "stable" :
140
- version = "master"
141
- return f"https://github.com/ManimCommunity/manim/blob/{ version } /{ filename } .py"
142
-
143
-
144
131
# external links
145
132
extlinks = {
146
133
"issue" : ("https://github.com/ManimCommunity/manim/issues/%s" , "issue " ),
You can’t perform that action at this time.
0 commit comments