diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-02-08 06:23:11 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-02-22 12:20:12 +0300 |
commit | 9db38aadfdb64fea3e1ae50264a096e17c1e0d69 (patch) | |
tree | 8da85bc8a8c099a365fa4055982e847f8ca2856a /sphinx/environment | |
parent | 973c91bb1013ba977b87c20ade5e34d235f75778 (diff) |
Fix #3106: domain: Register hyperlink target for index page automatically
Diffstat (limited to 'sphinx/environment')
-rw-r--r-- | sphinx/environment/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sphinx/environment/__init__.py b/sphinx/environment/__init__.py index d7c74a2fe..d40a6cbb3 100644 --- a/sphinx/environment/__init__.py +++ b/sphinx/environment/__init__.py @@ -218,6 +218,10 @@ class BuildEnvironment: for domain in app.registry.create_domains(self): self.domains[domain.name] = domain + # setup domains (must do after all initialization) + for domain in self.domains.values(): + domain.setup() + # initialize config self._update_config(app.config) |