Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Pass the `autosummary_imported_members` config var into
Documenter.options.imported_members, so we don't miss
members from autosummary tables.
  • Loading branch information
Jarrad Whitaker committed Jan 7, 2022
1 parent 0560801 commit 22a6d79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sphinx/ext/autosummary/__init__.py
Expand Up @@ -256,8 +256,9 @@ class Autosummary(SphinxDirective):
}

def run(self) -> List[Node]:
opts = Options({'imported-members': self.env.app.config.autosummary_imported_members})
self.bridge = DocumenterBridge(self.env, self.state.document.reporter,
Options(), self.lineno, self.state)
opts, self.lineno, self.state)

names = [x.strip().split()[0] for x in self.content
if x.strip() and re.search(r'^[~a-zA-Z_]', x.strip()[0])]
Expand Down

0 comments on commit 22a6d79

Please sign in to comment.