Skip to content

Commit ed53081

Browse files
[doc] Remove innacurate warning
1 parent d6a579d commit ed53081

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

doc/conf.py

+4-12
Original file line numberDiff line numberDiff line change
@@ -47,29 +47,21 @@
4747

4848

4949
# Single file redirects are handled in this file and can be done by a pylint
50-
# contributor if no englobing full directory redirect is applied first. See:
50+
# contributor. We use the following extension:
5151
# https://documatt.gitlab.io/sphinx-reredirects/usage.html
5252
# Directory redirects are handled in ReadTheDoc admin interface and can only be done
5353
# by pylint maintainers at the following URL:
5454
# https://readthedocs.org/dashboard/pylint/redirects/
55-
DIRECTORY_REDIRECT = [
56-
# This list has no effect it must be manually updated from the Read the doc conf
57-
"messages/",
58-
]
5955
redirects: dict[str, str] = {
6056
# "<source>": "<target>"
6157
"intro": "index.html",
6258
"support": "contact.html",
6359
"user_guide/ide-integration": "installation.html",
64-
"user_guide/message-control": "user_guide/messages/message_control.html",
6560
"additional_commands/index": "../index.html",
61+
"messages/messages_introduction": "../user_guide/messages/index.html",
62+
"messages/messages_list": "../user_guide/messages/messages_overview.html",
63+
"user_guide/message-control": "messages/message_control.html",
6664
}
67-
for m in redirects:
68-
for r in DIRECTORY_REDIRECT:
69-
assert not m.startswith(r), (
70-
f"Redirection will silentely fail: '{m}' start with '{r}' and "
71-
"the whole directory is redirected by ReadtheDoc conf already."
72-
)
7365

7466
# Add any paths that contain templates here, relative to this directory.
7567
templates_path = ["_templates"]

0 commit comments

Comments
 (0)