From f044a7d0fe5527597d4a8d2434bb51b622db65ef Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Tue, 7 Jan 2025 15:34:32 +0100 Subject: [PATCH] fix(docs): use sphinx note function (#604) --- docs/index.rst | 2 +- docs/testing.rst | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index f25891d..c9d8fea 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -119,7 +119,7 @@ path of a field class, and the (optional) second item is a dictionary used to co The ``widget`` and ``widget_kwargs`` keys in the field config dictionary can be used to configure the widget used in admin, the other values will be passed as kwargs to the field's ``__init__()`` -Note: Use later evaluated strings instead of direct classes for the field and widget classes: +.. note:: Use later evaluated strings instead of direct classes for the field and widget classes: .. code-block:: python diff --git a/docs/testing.rst b/docs/testing.rst index e2a82c0..1db0230 100644 --- a/docs/testing.rst +++ b/docs/testing.rst @@ -90,8 +90,9 @@ If you want to use override as a context manager or decorator, consider using def test_override_context_manager(): ... -Pytest fixture as function or method parameter ( -NOTE: no import needed as fixture is available globally) +Pytest fixture as function or method parameter. + +.. note:: No import needed as fixture is available globally. .. code-block:: python