diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c28c8f..8c34acb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [2026.3](https://github.com/python/python-docs-theme/releases/tag/2026.3) + +* Add colors for new thread-safety levels by @lysnikolaou in https://github.com/python/python-docs-theme/pull/299 + ## [2026.2](https://github.com/python/python-docs-theme/releases/tag/2026.2) * Style codeblock `:caption:` by @StanFromIreland in https://github.com/python/python-docs-theme/pull/288 diff --git a/python_docs_theme/__init__.py b/python_docs_theme/__init__.py index 026329b..e92b751 100644 --- a/python_docs_theme/__init__.py +++ b/python_docs_theme/__init__.py @@ -11,7 +11,7 @@ from sphinx.application import Sphinx from sphinx.util.typing import ExtensionMetadata -__version__ = "2026.2" +__version__ = "2026.3" THEME_PATH = Path(__file__).resolve().parent LOCALE_DIR = THEME_PATH / "locale" diff --git a/python_docs_theme/static/pydoctheme.css b/python_docs_theme/static/pydoctheme.css index a83030a..7167add 100644 --- a/python_docs_theme/static/pydoctheme.css +++ b/python_docs_theme/static/pydoctheme.css @@ -448,7 +448,9 @@ div.footer a:hover { :root { --threadsafety-incompatible: var(--bad-color); --threadsafety-compatible: var(--middle-color); - --threadsafety-safe: var(--good-color); + --threadsafety-distinct: var(--middle-color); + --threadsafety-shared: var(--good-color); + --threadsafety-atomic: var(--good-color); } .threadsafety.threadsafety-incompatible { @@ -459,8 +461,16 @@ div.footer a:hover { color: var(--threadsafety-compatible); } -.threadsafety.threadsafety-safe { - color: var(--threadsafety-safe); +.threadsafety.threadsafety-distinct { + color: var(--threadsafety-distinct); +} + +.threadsafety.threadsafety-shared { + color: var(--threadsafety-shared); +} + +.threadsafety.threadsafety-atomic { + color: var(--threadsafety-atomic); }