Skip to content

Commit d6e14f5

Browse files
committed
Deprecate old function
1 parent cf3c6e9 commit d6e14f5

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

astropy_sphinx_theme/__init__.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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()

astropy_sphinx_theme/astropy-unified/static/css/astropy.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
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;

astropy_sphinx_theme/bootstrap_astropy.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
from 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+
611
def setup(app):
712
app.add_html_theme(
813
"bootstrap-astropy",

0 commit comments

Comments
 (0)