-
Notifications
You must be signed in to change notification settings - Fork 6k
Add admonitions #3501
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
Add admonitions #3501
Conversation
harshil21
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job. The docs as artifact is already helping.
Can we also make a new icon for this? I have two in mind:
- Speedometer - https://icons.getbootstrap.com/icons/speedometer/
- Signpost - https://icons.getbootstrap.com/icons/signpost/
Done (signpost) |
harshil21
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I went through the docs and they look really nice on there. Hopefully more people will start using them
seealsos with shortcut admonitions
Bibo-Joshi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work indeed! 🚀 I left a few smaller comments below.
I would like it very much if we could make the bullet point list collapsed by default if there's more than, say, 5 items. for Message, the list is really rather long … I'd be okay if that's done in a follow-up PR.
this does not affect existing classes but may be good for the future
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
harshil21
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing change, the docs somehow just keep getting better.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
…ions-docfixes-3496
This comment was marked as resolved.
This comment was marked as resolved.
this currently affects nothing but is worth including
`Bot` had a "Returned in" admonition linking to `ApplicationBuilder` because of a custom generic
there is no need to call `typing.get_args()` and check its return because `self._resolve_arg()` has recursive calls anyway.
they only contain Appbuilder's own methods
|
Found some more missing links, I think this is the last of it: Use-in:
Available-in:
|
that led to last `elif` being ignored and classes whose args were typed as strings were not added to AppBuilder's "Use in"
* catch `NotImplementedError` propagated from `._resolve_arg()` and show an informative error message about which method/attr in which class triggered the admonition generation error. * one stray `continue` got left behind
harshil21
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Phew, I think I'm happy with all the changes. This feature makes it almost impossible to get lost in the docs!
addresses #3496
..seealsonotes were separated and included manually because they contained both shortcuts and links to Wiki