Skip to content

Commit 602d719

Browse files
committed
Standardized and improved admonition types.
1 parent 7a2f8f4 commit 602d719

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

docs/faq/asyncio.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Using asyncio
44
.. currentmodule:: websockets.asyncio.connection
55

66
.. admonition:: This FAQ is written for the new :mod:`asyncio` implementation.
7-
:class: hint
7+
:class: tip
88

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

docs/faq/client.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Client
44
.. currentmodule:: websockets.asyncio.client
55

66
.. admonition:: This FAQ is written for the new :mod:`asyncio` implementation.
7-
:class: hint
7+
:class: tip
88

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

docs/faq/server.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Server
44
.. currentmodule:: websockets.asyncio.server
55

66
.. admonition:: This FAQ is written for the new :mod:`asyncio` implementation.
7-
:class: hint
7+
:class: tip
88

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

docs/project/changelog.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Backwards-incompatible changes
4848
.. _python-socks: https://github.com/romis2012/python-socks
4949

5050
.. admonition:: Keepalive is enabled in the :mod:`threading` implementation.
51-
:class: note
51+
:class: important
5252

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

137137
.. admonition:: The new :mod:`asyncio` implementation is now the default.
138-
:class: danger
138+
:class: attention
139139

140140
The following aliases in the ``websockets`` package were switched to the new
141141
:mod:`asyncio` implementation::
@@ -749,7 +749,7 @@ Security fix
749749
............
750750

751751
.. admonition:: websockets 9.1 fixes a security issue introduced in 8.0.
752-
:class: important
752+
:class: danger
753753

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

11701170
.. admonition:: websockets 5.0 fixes a security issue introduced in 4.0.
1171-
:class: important
1171+
:class: danger
11721172

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

0 commit comments

Comments
 (0)