Odoo documentation sources
Go to file
Antoine Vandevenne (anv) 302b5307fa [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#2292

X-original-commit: 0417b95514
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-06-24 10:29:43 +02:00
.tx [MERFE] Froward port of 13.0 to 14.0 2021-06-14 16:11:22 +02:00
content [IMP] redirects: split redirects.txt into multiple, per-version, files 2022-06-24 10:29:43 +02:00
extensions [IMP] redirects: split redirects.txt into multiple, per-version, files 2022-06-24 10:29:43 +02:00
locale [FIX] inventory_and_mrp: documentation update 2022-04-21 18:45:24 +02:00
redirects [IMP] redirects: split redirects.txt into multiple, per-version, files 2022-06-24 10:29:43 +02:00
static [IMP] js: js domain css customization 2021-11-03 09:31:04 +00:00
.gitattributes [ADD] .gitattributes: include RST files in language statistic on GitHub 2022-04-29 11:01:52 +02:00
.gitignore [ADD] .gitattributes: include RST files in language statistic on GitHub 2022-04-29 11:01:52 +02:00
commit_template.txt [IMP] base: add a commit message template with the guidelines 2020-01-16 14:17:37 +01:00
conf.py [IMP] redirects: split redirects.txt into multiple, per-version, files 2022-06-24 10:29:43 +02:00
Makefile [IMP] odoo_theme: allow to add plausible script 2022-05-09 11:25:42 +02:00
README.md [IMP] README: remove request for review instruction 2021-12-09 13:40:37 +00:00
requirements.txt [FIX] requirements: pin docutils to 0.16.0 2022-06-10 16:03:10 +02:00

Odoo documentation

Build the documentation locally

Requirements

Instructions

  1. In a terminal, navigate to the root directory and compile the documentation to HTML with the following command:

    make
    

    Additional commands are available with make help.

  2. Open the file documentation/_build/html/index.html in your web browser to display the render.

  3. See this guide for more detailed instructions.

Optional: to fully build the developer documentation with inline docstrings for documented Python functions, place your local copy of the odoo/odoo repository in the root directory. Alternatively, create a symbolic link with odoo as link name. If the Odoo sources are not found, a warning will be shown.

Contribute to the documentation

For contributions to the content of the documentation, please refer to the Introduction Guide.

To report a content issue, request new content or ask a question, use the repository's issue tracker as usual.

Learn More

To learn more about Odoo, in addition to the documentation, have a look at the official eLearning and Scale-up, The Business Game.