diff --git a/docs/containers/reset_singletons.rst b/docs/containers/reset_singletons.rst index 299b2a2f..7d315099 100644 --- a/docs/containers/reset_singletons.rst +++ b/docs/containers/reset_singletons.rst @@ -1,3 +1,5 @@ +.. _reset-container-singletons: + Reset container singletons -------------------------- @@ -16,4 +18,6 @@ Method ``.reset_singletons()`` also resets singletons in sub-containers: ``provi :lines: 3- :emphasize-lines: 21 +See also: :ref:`singleton-provider`. + .. disqus:: diff --git a/docs/main/changelog.rst b/docs/main/changelog.rst index 28ce13fc..ad2b1b98 100644 --- a/docs/main/changelog.rst +++ b/docs/main/changelog.rst @@ -13,6 +13,8 @@ Development version are defined. See issue: `#383 `_. Thanks to `@shaunc `_ for suggesting the feature. +- Add docs cross-links between ``Singleton`` provider and "Reset container singletons" + pages. 4.21.0 ------ diff --git a/docs/providers/singleton.rst b/docs/providers/singleton.rst index 0979cbe3..ae5257f4 100644 --- a/docs/providers/singleton.rst +++ b/docs/providers/singleton.rst @@ -1,3 +1,5 @@ +.. _singleton-provider: + Singleton provider ================== @@ -62,6 +64,8 @@ call ``.full_reset()`` method. :lines: 3- :emphasize-lines: 25 +See also: :ref:`reset-container-singletons`. + Using singleton with multiple threads -------------------------------------