From 81640067b6ec29820cfb661e8c76881e5a7a4092 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Tue, 20 Dec 2022 21:58:37 +0100 Subject: [PATCH] DOC: Fix duplicate redirect The example /gallery/pyplots/dollar_ticks is included into the artists tutorial. #24054 Moved that example and added a `.. redirect-from::` directive. This was then duplicated by the include. This PR fixes the issue by moving the include start point after the redirect. --- tutorials/intermediate/artists.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/intermediate/artists.py b/tutorials/intermediate/artists.py index 82d708f8289e..1a186ccb4222 100644 --- a/tutorials/intermediate/artists.py +++ b/tutorials/intermediate/artists.py @@ -717,5 +717,5 @@ class in the Matplotlib API, and the one you will be working with most # # # .. include:: ../../gallery/ticks/dollar_ticks.rst -# :start-after: y-axis labels. +# :start-after: .. redirect-from:: /gallery/pyplots/dollar_ticks # :end-before: .. admonition:: References