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

Tidy up the Event-related documentation #4302

Merged
merged 54 commits into from
Mar 20, 2024
Merged

Conversation

davep
Copy link
Contributor

@davep davep commented Mar 18, 2024

A PR that wanders through the Event-related docs and tidies up some issues. Main changes are:

  • Removes almost all of the in-md-file documentation for all documented events and instead relies on their docstrings.
  • Adds missing docstrings where appropriate.
  • Adds more see-also goodness where noticed and appropriate.
  • Adds Print to the documented events.
  • Adds AppBlur and AppFocus to the list of events now that they're more widely-used.

Fixes #4174.

@davep davep added documentation Improvements or additions to documentation Task labels Mar 18, 2024
@davep davep self-assigned this Mar 18, 2024
davep added 3 commits March 18, 2024 11:22
Now that they're supported by more than just textual-web it makes sense to
expose them a little better in the docs.
@davep davep marked this pull request as ready for review March 18, 2024 11:53
@davep davep marked this pull request as draft March 19, 2024 14:25
@davep
Copy link
Contributor Author

davep commented Mar 19, 2024

Taking back to draft for the moment. We've decided to go all-in on letting the events self-document (as much as is possible), so I'll go back over these gain and remove almost everything from the md files themselves, and also harmonise each of the events in terms of what has docstrings and what form they take.

@davep davep marked this pull request as ready for review March 20, 2024 14:49
src/textual/events.py Outdated Show resolved Hide resolved
Co-authored-by: TomJGooding <[email protected]>
Copy link
Collaborator

@willmcgugan willmcgugan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me.

@davep davep merged commit 154a631 into Textualize:main Mar 20, 2024
20 checks passed
@davep davep deleted the event-docs-tidy branch March 20, 2024 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation Task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Event documentation doubles up the bubble and verbose checkboxes
3 participants