streamlit / docs

Source code for the Streamlit Python library documentation
https://docs.streamlit.io
Apache License 2.0
119 stars 479 forks source link

Add support for Important and Tip in docstrings #1170

Closed sfc-gh-dmatthews closed 1 month ago

sfc-gh-dmatthews commented 1 month ago

📚 Context

Currently, only Warning and Note blocks are correctly styled when used in docstrings. This PR adds the correct colors for Tip and Important blocks as well.

New: image

Before: image

Contribution License Agreement By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.