summaryrefslogtreecommitdiff
path: root/sphinx/theming.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2021-05-12 01:22:29 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2021-05-12 01:36:14 +0900
commit5078069eb133dbb46f1c69c9693c1aefe9d903ef (patch)
tree1a695a22c1179b8e06c8247d9169574a56c97488 /sphinx/theming.py
parent96dbe5e3549815409450588b50f52da4d6aaba5e (diff)
downloadsphinx-git-5078069eb133dbb46f1c69c9693c1aefe9d903ef.tar.gz
Deprecate app.html_themes
The register is much better to store the HTML themes instead of the application object. So this migrates it to the registry object.
Diffstat (limited to 'sphinx/theming.py')
-rw-r--r--sphinx/theming.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/theming.py b/sphinx/theming.py
index b7fb652ac..aff381af4 100644
--- a/sphinx/theming.py
+++ b/sphinx/theming.py
@@ -155,7 +155,7 @@ class HTMLThemeFactory:
def __init__(self, app: "Sphinx") -> None:
self.app = app
- self.themes = app.html_themes
+ self.themes = app.registry.html_themes
self.load_builtin_themes()
if getattr(app.config, 'html_theme_path', None):
self.load_additional_themes(app.config.html_theme_path)