diff --git a/src/docs/_static/style.css b/src/docs/_static/style.css index 9a9d498..8ede8ce 100644 --- a/src/docs/_static/style.css +++ b/src/docs/_static/style.css @@ -15,7 +15,7 @@ color: rgba(0, 0, 0, 0.3); } -.rst-content .line-block { +.note > .line-block { margin-bottom: 0; } @@ -27,4 +27,8 @@ .row-odd th.head p, .row-even th.head p { margin-bottom: 0; +} + +span:target + h3 { + background-color: yellow; } \ No newline at end of file diff --git a/src/docs/data_types.rst b/src/docs/data_types.rst index c6d3835..e57f6ed 100644 --- a/src/docs/data_types.rst +++ b/src/docs/data_types.rst @@ -38,8 +38,6 @@ +----------------+-------------------+-----------------------------------------------------+--------------------------------------------------------------------------------+ - - .. |Single-precision floating-point format| raw:: html Single-precision floating-point format @@ -55,7 +53,3 @@ .. |wiki.vg:Chat| raw:: html wiki.vg:Chat - -.. |wiki.vg:Data types| raw:: html - - wiki.vg:Data types \ No newline at end of file diff --git a/src/docs/packet_format.rst b/src/docs/packet_format.rst index 62f7d22..e97f1c8 100644 --- a/src/docs/packet_format.rst +++ b/src/docs/packet_format.rst @@ -13,10 +13,9 @@ +-------------+--------+----------------------------------------------------------------+ -Пример ------- +.. rubric:: Пример -Пакет **DisconnectPacket** +Пакет |DisconnectPacket| .. code-block:: none @@ -37,3 +36,6 @@ +-------------+-----------+----------------------------+---------------------------------+ | ``2c`` = 44 | ``00`` | ``2a`` = 42 | ``22 59 6f 75 ... 65 72 21 22`` | +-------------+-----------+----------------------------+---------------------------------+ + + +.. |DisconnectPacket| replace:: :ref:`serverside_disconnectpacket` \ No newline at end of file diff --git a/src/docs/packets_clientside.rst b/src/docs/packets_clientside.rst index 886825a..a3a95bd 100644 --- a/src/docs/packets_clientside.rst +++ b/src/docs/packets_clientside.rst @@ -53,8 +53,6 @@ LoginStartPacket +------+--------+------------------+ - - .. |Версия протокола| raw:: html Версия протокола \ No newline at end of file diff --git a/src/docs/packets_serverside.rst b/src/docs/packets_serverside.rst index bb3c69f..4835e25 100644 --- a/src/docs/packets_serverside.rst +++ b/src/docs/packets_serverside.rst @@ -42,9 +42,10 @@ StatusServerResponse Подробнее: :download:`JSON Schema <_static/server_info.schema.json>` +.. _serverside_pingpacket: + PingPacket ^^^^^^^^^^ -.. _serverside_pingpacket: Пакет для обмена "пингом". @@ -63,6 +64,8 @@ PingPacket LOGIN ----- +.. _serverside_disconnectpacket: + DisconnectPacket ^^^^^^^^^^^^^^^^