diff --git a/source/_ext/dovecot_sphinx.py b/source/_ext/dovecot_sphinx.py index a4cac8f79..befd7a0a0 100644 --- a/source/_ext/dovecot_sphinx.py +++ b/source/_ext/dovecot_sphinx.py @@ -188,7 +188,15 @@ def generate(self, docnames=None): return content, True -class DovecotSettingDomain(Domain): +class DovecotAbstractDomain(Domain): + initial_data = {} + + def merge_domaindata(self, docnames, otherdata): + for k in list(self.initial_data.keys()): + self.data[k].update(otherdata[k]) + + +class DovecotSettingDomain(DovecotAbstractDomain): roles = {"ref": XRefRole()} initial_data = { "entry": {}, @@ -560,7 +568,7 @@ def transform_content(self, contentnode): contentnode += collapse -class DovecotEventDomain(Domain): +class DovecotEventDomain(DovecotAbstractDomain): name = "dovecot_event" initial_data = {"global": {}, "group": {}, "inherit": {}}