Skip to content

Commit

Permalink
DOCS/man: use the correct directive type for "Warning" admonitions
Browse files Browse the repository at this point in the history
Some places in the manpage uses `.. admonition:: Warning` instead of
the specific directive type  `.. warning::` for warning admonitions.
This causes the "Warning" text appearing in black color instead of red.
Correct them here.
  • Loading branch information
na-na-hi authored and sfan5 committed Dec 28, 2023
1 parent 26df531 commit 3bf8564
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion DOCS/man/input.rst
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ Remember to quote string arguments in input.conf (see `Flat command syntax`_).
wasn't started in detached mode, even if ``playback_only`` is
false.

.. admonition:: Warning
.. warning::

Don't forget to set the ``playback_only`` field to false if you want
the command to run while the player is in idle mode, or if you don't
Expand Down
16 changes: 8 additions & 8 deletions DOCS/man/options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1961,7 +1961,7 @@ Audio
In earlier mpv versions you could use ``--ad`` to force the spdif wrapper.
This does not work anymore.

.. admonition:: Warning
.. warning::

There is not much reason to use this. HDMI supports uncompressed
multichannel PCM, and mpv supports lossless DTS-HD decoding via
Expand All @@ -1988,7 +1988,7 @@ Audio
``--ad=help``
List all available decoders.

.. admonition:: Warning
.. warning::

Enabling compressed audio passthrough (AC3 and DTS via SPDIF/HDMI) with
this option is not possible. Use ``--audio-spdif`` instead.
Expand Down Expand Up @@ -2080,7 +2080,7 @@ Audio
``--ad-spdif-dtshd=<yes|no>``, ``--dtshd``, ``--no-dtshd``
If DTS is passed through, use DTS-HD.

.. admonition:: Warning
.. warning::

This and enabling passthrough via ``--ad`` are deprecated in favor of
using ``--audio-spdif=dts-hd``.
Expand Down Expand Up @@ -2138,7 +2138,7 @@ Audio
work-around for this on some AOs is to use ``--audio-exclusive=yes`` to
circumvent the system mixer entirely.

.. admonition:: Warning
.. warning::

Using ``auto`` can cause issues when using audio over HDMI. The OS will
typically report all channel layouts that _can_ go over HDMI, even if
Expand Down Expand Up @@ -2284,7 +2284,7 @@ Audio

Not all AOs support this.

.. admonition:: Warning
.. warning::

This modifies certain subtle player behavior, like A/V-sync and underrun
handling. Enabling this option is strongly discouraged.
Expand Down Expand Up @@ -2406,7 +2406,7 @@ Subtitles
some margin between the bottom and the subtitle. Values above 100 move the
subtitle further down.

.. admonition:: Warning
.. warning::

Text subtitles (as opposed to image subtitles) may be cut off if the
value of the option is above 100. This is a libass restriction.
Expand Down Expand Up @@ -2452,7 +2452,7 @@ Subtitles
:normal: FreeType autohinter, normal mode
:native: font native hinter

.. admonition:: Warning
.. warning::

Enabling hinting can lead to mispositioned text (in situations it's
supposed to match up video background), or reduce the smoothness
Expand Down Expand Up @@ -5842,7 +5842,7 @@ them.
and overwrites the internal list with it. The latter is a path list option
(see `List Options`_ for details).

.. admonition:: Warning
.. warning::

The syntax is not stable yet and may change any time.

Expand Down

0 comments on commit 3bf8564

Please sign in to comment.