File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed
astropy-unified/static/css Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 1+ import warnings
2+
3+ from .bootstrap_astropy import get_html_theme_path as _old_theme_path
4+
5+
6+ def get_html_theme_path ():
7+ warnings .warn (
8+ "astropy_sphinx_theme.get_html_theme_path is deprecated, you shouldn't"
9+ " need to manually specify the theme path as the theme is registered with sphinx" ,
10+ DeprecationWarning ,
11+ )
12+ return _old_theme_path ()
Original file line number Diff line number Diff line change 11: root {
22 /* SunPy Theme Colors */
3- /* If you add or change the names of these please update the docs */
43 --sst-accent-color-bright : # ff5000 ;
54 --sst-accent-color-muted : # FC9468 ;
65 --sst-dark-color : # 404040 ;
Original file line number Diff line number Diff line change 33from pathlib import Path
44
55
6+ # This is kept for backwards compatibility reasons (see __init__.py)
7+ def get_html_theme_path ():
8+ return str (Path (__file__ ).resolve ().parent / "bootstrap-astropy" )
9+
10+
611def setup (app ):
712 app .add_html_theme (
813 "bootstrap-astropy" ,
You can’t perform that action at this time.
0 commit comments