Skip to content

Conversation

MichaReiser
Copy link
Member

Summary

GitHub and mkdocs use different syntaxes for admonition. The mkdocs admonition have more features but we have some markdown files that are both rendered on GitHub and mkdocs.
This PR includes a mkdocs plugin that transforms GitHub admonition to mkdocs admonitions.

An alternative to the extension is to extend generate_mkdocs to also replace admonitions. Given that the plugin already exists, this seemed easier.

I had to tag a specific commit because the pypi release doen't include the fix for PGijsbers/admonitions#3

Fixes #18158

Test Plan

Build the docs locally

@MichaReiser MichaReiser self-assigned this May 18, 2025
@MichaReiser MichaReiser added the documentation Improvements or additions to documentation label May 18, 2025
@MichaReiser MichaReiser force-pushed the micha/admonition-docs branch from 6b535bc to 4e15f3c Compare May 18, 2025 16:02
@MichaReiser MichaReiser merged commit f9ca6eb into main May 20, 2025
34 checks passed
@MichaReiser MichaReiser deleted the micha/admonition-docs branch May 20, 2025 06:22
@corneliusroemer
Copy link
Contributor

Commit has now landed in a release so pin can be removed (in the future, it might be good to add a comment to the requirements.txt providing the reason for a pinned dependency)

image

corneliusroemer added a commit to corneliusroemer/ruff that referenced this pull request Jul 15, 2025
Renovate doesn't upgrade sha-pinned dependencies.

The pin was introduced due to the bug fix not being available in a
released version in PR astral-sh#18163

Now the bug fix has been released so the pin can be removed.

In the future, in such cases, it might be a good idea to add a comment
and/or set a reminder to look back and consider removing the pin
as renovate will not handle sha pins.

As renovate handles almost all dep upgrades, this provides a false sense
of "security" that deps are always kept up to date automatically.

Related to issue astral-sh#19369

Thanks @ntBre for the pointer!
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Admonition at the top of CONTRIBUTING.md badly rendered by mkdocs
3 participants