Skip to content

Use existing admonition tags and classes in new GFM admonitions #378

Description

@flying-sheep

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

image

the classes in this PR should be adjusted to match the rST classes that already exist before adding support.

cc @miketheman @ewdurbin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions