Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Do minimum work when falling back to re-collecting an object to get its anchor #330

Merged
merged 1 commit into from Oct 10, 2021

Conversation

pawamoy
Copy link
Member

@pawamoy pawamoy commented Oct 8, 2021

This change introduces a new attribute on collectors: fallback_config.
It is used by the Handlers.get_anchor method when collecting an object
to find its anchor. It allows to pass specific options to the collector
to avoid collecting the object members or, for example,
parsing Python docstrings, as it is not useful,
since we only care about the anchor.

Fixes #329

It requires pytkdocs v0.14 which added Mardown "style" support: mkdocstrings/pytkdocs#121

…get its anchor

This change introduces a new attribute on collectors: `fallback_config`.
It is used by the `Handlers.get_anchor` method when collecting an object
to find its anchor. It allows to pass specific options to the collector
to avoid collecting the object members or, for example,
parsing Python docstrings, as it is not useful,
since we only care about the anchor.

Issue #329: #329
PR #330: #330
@oprypin oprypin self-requested a review October 8, 2021 10:28
@pawamoy
Copy link
Member Author

pawamoy commented Oct 8, 2021

Maybe we could call it anchor_config instead.

@pawamoy pawamoy merged commit f6cf570 into master Oct 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

External base classes makes autorefs collect the class and generate docstring parsing warnings
2 participants