File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,10 @@ def mpl_path(path):
31
31
# For more details, see:
32
32
# https://www.sphinx-doc.org/en/master/development/theming.html#distribute-your-theme-as-a-python-package
33
33
def setup (app ):
34
- app .add_html_theme ("mpl_sphinx_theme" ,
35
- str (Path (__file__ ).parent .resolve ()))
34
+ here = Path (__file__ ).parent .resolve ()
35
+ # Include component templates
36
+ app .config .templates_path .append (str (here / "components" ))
37
+
38
+ app .add_html_theme ("mpl_sphinx_theme" , str (here ))
36
39
app .connect ("html-page-context" , setup_html_page_context )
37
40
return {'version' : __version__ , 'parallel_read_safe' : True }
Original file line number Diff line number Diff line change
1
+ {% if lib_version %}
2
+ < p class ="sphinx-version ">
3
+ Built from {{ lib_version }}.
4
+ < br />
5
+ </ p >
6
+ {% endif %}
You can’t perform that action at this time.
0 commit comments