In #374 you added admoniton support but didn’t match the existing rST HTML structure that exists in many READMEs on PyPI already.
We should change that and emit the existing structure instead so existing READMEs can benefit from the new to-be-added styling.
e.g. for django-push-notifications, this
.. note::
To migrate from legacy FCM APIs to HTTP v1, see `docs/FCM <https://github.com/jazzband/django-push-notifications/blob/master/docs/FCM.rst>`_.
becomes this HTML
<aside class="admonition note">
<p class="admonition-title">Note</p>
<p>To migrate from legacy FCM APIs to HTTP v1, see <a href="https://github.com/jazzband/django-push-notifications/blob/master/docs/FCM.rst" rel="nofollow">docs/FCM</a>.</p>
</aside>
and renders as
the classes in this PR should be adjusted to match the rST classes that already exist before adding support.
cc @miketheman @ewdurbin
In #374 you added admoniton support but didn’t match the existing rST HTML structure that exists in many READMEs on PyPI already.
We should change that and emit the existing structure instead so existing READMEs can benefit from the new to-be-added styling.
e.g. for django-push-notifications, this
becomes this HTML
and renders as
the classes in this PR should be adjusted to match the rST classes that already exist before adding support.
cc @miketheman @ewdurbin