documentation/content
Antoine Vandevenne (anv) 9dcc8bb071 [IMP] redirects: split redirects.txt into multiple, per-version, files
The `redirects.txt` file used to specify redirect rules for renamed or
moved documentation pages is starting to grow too big to be easily
maintainable. The main reason is that the number of redirect rules that
were thought to be required has been largely underestimated when
implementing the 'redirects' extension. At first, we believed that no
guidelines or structure were necessary because only a small amount of
redirect rules would be specified. This proved wrong and the file is now
becoming a mess, making it increasingly difficult to figure out where,
why, when, and if a redirect rule is specified in the file.

As the file is versioned, another issue emerges: conflicts occur every
time a commit is forward-ported to a later version if that commit adds a
redirect rule at the end of the file or at a line that was changed in
the later version. As redirect rules are frequently added, and since
blocks of redirect rules for new versions are added at the end of the
file, this tends to happen a lot.

This commit attempts to hit two birds with one stone by splitting the
`redirects.txt` file into multiple files, one per version. While doing
so, the existing redirect rules are ordered alphabetically and moved
into contextual blocks. Instructions and guidelines on how to create
redirect rules are also listed in the `redirects/MANUAL.md` file. By
sorting the redirect rules and adding them in different files, the
number of conflicts should decrease by a lot.

task-2891912

closes odoo/documentation#2267

X-original-commit: 80c7b27827
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-06-23 10:43:43 +02:00
..
administration [FIX] odoo.sh: remove hidden folder from documentation 2022-06-08 08:50:49 +02:00
applications [FW][IMP] accounting: remove the odoo tutorials invoices link 2022-06-20 18:43:52 +02:00
contributing [IMP] redirects: split redirects.txt into multiple, per-version, files 2022-06-23 10:43:43 +02:00
developer [IMP] rdtraining: tip about -i/-u for odoo-bin 2022-06-10 16:56:54 +02:00
legal [FIX] legal/terms: fixups for ES translation of enterprise 2022-01-26 01:54:29 +00:00
services/support [REV] services: keep what can i expect page 2021-07-07 16:38:09 +02:00
administration.rst [IMP] upgrade: create new "upgrade" section in "install and maintain" 2021-10-15 11:40:55 +00:00
applications.rst [IMP] *: introduce tables of contents in top-level app pages 2021-07-07 14:56:38 +02:00
contributing.rst [IMP] *: exclude empty TOC pages from search results 2021-06-09 11:55:34 +02:00
developer.rst [IMP] *: introduce tables of contents in top-level app pages 2021-07-07 14:56:38 +02:00
index.rst [IMP] *: introduce tables of contents in top-level app pages 2021-07-07 14:56:38 +02:00
last_build.rst [ADD] last_build: add an orphan page informing on the last build date 2022-04-05 17:16:06 +02:00
legal.rst [IMP] Legal: spanish translation of enterprise.rst 2022-01-26 01:54:28 +00:00