diff --git a/docs/examples/kitchen-sink/admonitions.rst b/docs/examples/kitchen-sink/admonitions.rst index 8789c0d81..3cbabecc2 100644 --- a/docs/examples/kitchen-sink/admonitions.rst +++ b/docs/examples/kitchen-sink/admonitions.rst @@ -121,3 +121,10 @@ Sphinx provides several different types of admonitions. .. deprecated:: v0.1.1 Here's a deprecation message. + +``versionremoved`` +================== + +.. versionremoved:: v0.1.1 + + Here's a version removed message. diff --git a/src/pydata_sphinx_theme/assets/styles/components/_versionmodified.scss b/src/pydata_sphinx_theme/assets/styles/components/_versionmodified.scss index 4151482b8..2bbf759f3 100644 --- a/src/pydata_sphinx_theme/assets/styles/components/_versionmodified.scss +++ b/src/pydata_sphinx_theme/assets/styles/components/_versionmodified.scss @@ -1,6 +1,7 @@ div.versionadded, div.versionchanged, -div.deprecated { +div.deprecated, +div.versionremoved { vertical-align: middle; margin: 1.5625em auto; padding: 0 0.6rem; @@ -34,7 +35,8 @@ div.versionchanged { background-color: var(--pst-color-warning-bg); } -div.deprecated { +div.deprecated, +div.versionremoved { border-color: var(--pst-color-danger); background-color: var(--pst-color-danger-bg); } @@ -70,3 +72,10 @@ span.versionmodified.deprecated { content: var(--pst-icon-versionmodified-deprecated); } } + +span.versionmodified.removed { + &::before { + color: var(--pst-color-danger); + content: var(--pst-icon-versionmodified-removed); + } +} diff --git a/src/pydata_sphinx_theme/assets/styles/variables/_versionmodified.scss b/src/pydata_sphinx_theme/assets/styles/variables/_versionmodified.scss index 20432fbd1..6dd7754b1 100644 --- a/src/pydata_sphinx_theme/assets/styles/variables/_versionmodified.scss +++ b/src/pydata_sphinx_theme/assets/styles/variables/_versionmodified.scss @@ -7,4 +7,5 @@ html { --pst-icon-versionmodified-added: var(--pst-icon-exclamation-circle); --pst-icon-versionmodified-changed: var(--pst-icon-exclamation-circle); --pst-icon-versionmodified-deprecated: var(--pst-icon-exclamation-circle); + --pst-icon-versionmodified-removed: var(--pst-icon-exclamation-circle); } diff --git a/tests/intermittent_warning_list.txt b/tests/intermittent_warning_list.txt index b66c214d5..9422c4ac2 100644 --- a/tests/intermittent_warning_list.txt +++ b/tests/intermittent_warning_list.txt @@ -2,3 +2,7 @@ WARNING: Cell printed to stderr: Matplotlib is building the font cache; this may take a moment. WARNING: failed to reach any of the inventories with the following issues: intersphinx inventory +# THESE 3 WILL GO AWAY WHEN OUR MIN SPHINX VERSION IS 7.3 OR HIGHER +Here's a version removed message. +.. versionremoved:: v0.1.1 +ERROR: Unknown directive type "versionremoved".