File tree 4 files changed +13
-2
lines changed
4 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1
1
/mpl_sphinx_theme.egg-info /
2
2
/mpl_sphinx_theme /__pycache__ /
3
+ build
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 doc_version %}
2
+ < p class ="sphinx-version ">
3
+ Built from {{ doc_version }}.
4
+ < br />
5
+ </ p >
6
+ {% endif %}
Original file line number Diff line number Diff line change 22
22
"static/images/*.ico" ,
23
23
"static/js/*.js" ,
24
24
"static/font/*.*" ,
25
+ "components/*.html" ,
25
26
]
26
27
},
27
28
include_package_data = True ,
You can’t perform that action at this time.
0 commit comments