Skip to content

Refactor plugin events, move docs to source code, type annotations #2931

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

Merged
merged 3 commits into from
Aug 15, 2022

Conversation

oprypin
Copy link
Contributor

@oprypin oprypin commented Aug 14, 2022

  • Move plugin events docs into source code + refactor
    • Create real (no-op) methods for each event in the base class.
    • Refactor event dispatcher to not check for methods' existence, instead just call them.
    • Move documentation from Markdown into docstrings of these methods.
    • Activate the 'mkdocstrings' plugin.
    • Use 'mkdocstrings' to insert documentation from those docstrings into the site.
  • Add type annotations for plugin events, include them in the docs
  • Drop py36 integration tests because mkdocstrings is >=3.7

* Create real (no-op) methods for each event in the base class.
* Refactor event dispatcher to not check for methods' existence, instead just call them.
* Move documentation from Markdown into docstrings of these methods.
* Activate the 'mkdocstrings' plugin.
* Use 'mkdocstrings' to insert documentation from those docstrings into the site.
@oprypin oprypin merged commit 70f39d4 into master Aug 15, 2022
@oprypin oprypin deleted the docplug branch August 15, 2022 12:21
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.

1 participant