|
47 | 47 |
|
48 | 48 |
|
49 | 49 | # 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: |
51 | 51 | # https://documatt.gitlab.io/sphinx-reredirects/usage.html
|
52 | 52 | # Directory redirects are handled in ReadTheDoc admin interface and can only be done
|
53 | 53 | # by pylint maintainers at the following URL:
|
54 | 54 | # 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 |
| -] |
59 | 55 | redirects: dict[str, str] = {
|
60 | 56 | # "<source>": "<target>"
|
61 | 57 | "intro": "index.html",
|
62 | 58 | "support": "contact.html",
|
63 | 59 | "user_guide/ide-integration": "installation.html",
|
64 |
| - "user_guide/message-control": "user_guide/messages/message_control.html", |
65 | 60 | "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", |
66 | 64 | }
|
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 |
| - ) |
73 | 65 |
|
74 | 66 | # Add any paths that contain templates here, relative to this directory.
|
75 | 67 | templates_path = ["_templates"]
|
|
0 commit comments