Skip to content

Commit 7ade71a

Browse files
[doc] Modify the automated redirection to user_guides
See discussion: #6628 (comment) Co-authored-by: Daniël van Noord <[email protected]>
1 parent 98d9a9f commit 7ade71a

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

doc/conf.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,21 @@
4545
"sphinx_reredirects",
4646
]
4747

48+
49+
# Single file redirects are handled in this file and can be done by a pylint
50+
# contributor. See:
4851
# https://documatt.gitlab.io/sphinx-reredirects/usage.html
52+
# Directory redirects are handled in ReadTheDoc admin interface and can only be done
53+
# by pylint maintainers at the following URL:
54+
# https://readthedocs.org/dashboard/pylint/redirects/
4955
redirects: dict[str, str] = {
5056
# "<source>": "<target>"
5157
"intro": "index.html",
5258
"support": "contact.html",
5359
"user_guide/ide-integration": "installation.html",
54-
"messages/index": "user_guide/messages/index.html",
5560
"messages/messages_introduction": "user_guide/messages/index.html",
5661
"messages/messages_list": "user_guide/messages/messages_overview.html",
57-
"user_guide/message-control": "user_guide/messages/message-control.html",
62+
"user_guide/message-control": "user_guide/messages/message_control.html",
5863
}
5964

6065
# Add any paths that contain templates here, relative to this directory.

doc/user_guide/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ User Guide
33
==========
44

55
.. toctree::
6-
:maxdepth: 3
6+
:maxdepth: 2
77
:titlesonly:
88

99
installation

doc/user_guide/messages/index.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ Messages
55
########
66

77
.. toctree::
8-
:maxdepth: 2
8+
:maxdepth: 1
99
:hidden:
1010

1111
messages_overview.rst
12-
message-control.rst
12+
message_control.rst
1313

1414
Messages categories
1515
===================

0 commit comments

Comments
 (0)