Merge "sphinxext: Add 'merge_domaindata'"

This commit is contained in:
Zuul 2020-09-22 14:51:47 +00:00 committed by Gerrit Code Review
commit dce2afd789
1 changed files with 9 additions and 0 deletions

View File

@ -495,6 +495,15 @@ class ConfigDomain(Domain):
)
return None
def merge_domaindata(self, docnames, otherdata):
for target, docname in otherdata['options'].items():
if docname in docnames:
self.data['options'][target] = docname
for target, docname in otherdata['groups'].items():
if docname in docnames:
self.data['groups'][target] = docname
def setup(app):
# NOTE(dhellmann): Try to turn off lazy translation from oslo_i18n