Skip to content

Commit

Permalink
Standardized and improved admonition types.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaugustin committed Feb 4, 2025
1 parent 7a2f8f4 commit 602d719
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/faq/asyncio.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Using asyncio
.. currentmodule:: websockets.asyncio.connection

.. admonition:: This FAQ is written for the new :mod:`asyncio` implementation.
:class: hint
:class: tip

Answers are also valid for the legacy :mod:`asyncio` implementation.

Expand Down
2 changes: 1 addition & 1 deletion docs/faq/client.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Client
.. currentmodule:: websockets.asyncio.client

.. admonition:: This FAQ is written for the new :mod:`asyncio` implementation.
:class: hint
:class: tip

Answers are also valid for the legacy :mod:`asyncio` implementation.

Expand Down
2 changes: 1 addition & 1 deletion docs/faq/server.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Server
.. currentmodule:: websockets.asyncio.server

.. admonition:: This FAQ is written for the new :mod:`asyncio` implementation.
:class: hint
:class: tip

Answers are also valid for the legacy :mod:`asyncio` implementation.

Expand Down
8 changes: 4 additions & 4 deletions docs/project/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Backwards-incompatible changes
.. _python-socks: https://github.com/romis2012/python-socks

.. admonition:: Keepalive is enabled in the :mod:`threading` implementation.
:class: note
:class: important

The :mod:`threading` implementation now sends Ping frames at regular
intervals and closes the connection if it doesn't receive a matching Pong
Expand Down Expand Up @@ -135,7 +135,7 @@ Backwards-incompatible changes
websockets 13.1 is the last version supporting Python 3.8.

.. admonition:: The new :mod:`asyncio` implementation is now the default.
:class: danger
:class: attention

The following aliases in the ``websockets`` package were switched to the new
:mod:`asyncio` implementation::
Expand Down Expand Up @@ -749,7 +749,7 @@ Security fix
............

.. admonition:: websockets 9.1 fixes a security issue introduced in 8.0.
:class: important
:class: danger

Version 8.0 was vulnerable to timing attacks on HTTP Basic Auth passwords
(`CVE-2021-33880`_).
Expand Down Expand Up @@ -1168,7 +1168,7 @@ Security fix
............

.. admonition:: websockets 5.0 fixes a security issue introduced in 4.0.
:class: important
:class: danger

Version 4.0 was vulnerable to denial of service by memory exhaustion
because it didn't enforce ``max_size`` when decompressing compressed
Expand Down

0 comments on commit 602d719

Please sign in to comment.