File tree Expand file tree Collapse file tree 4 files changed +13
-2
lines changed Expand file tree Collapse file tree 4 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 11/mpl_sphinx_theme.egg-info /
22/mpl_sphinx_theme /__pycache__ /
3+ build
Original file line number Diff line number Diff line change @@ -31,7 +31,10 @@ def mpl_path(path):
3131# For more details, see:
3232# https://www.sphinx-doc.org/en/master/development/theming.html#distribute-your-theme-as-a-python-package
3333def 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 ))
3639 app .connect ("html-page-context" , setup_html_page_context )
3740 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 2222 "static/images/*.ico" ,
2323 "static/js/*.js" ,
2424 "static/font/*.*" ,
25+ "components/*.html" ,
2526 ]
2627 },
2728 include_package_data = True ,
You can’t perform that action at this time.
0 commit comments