documentation/content/developer/howtos/rdtraining
Antoine Vandevenne (anv) 8722ea902e [MOV] content/*: move resource files into their related page's directory
Since odoo/documentation#903, the guideline for the location of new
resource (images, downloadable files, RST includes...) files is to place
those inside the directory of the RST page that references them.

For example, if `doc1.rst` has a reference to `image.png` and to
`download.zip`, the file structure should look like this:

├── parent_doc/
│     └── doc1/
│     │     └── image.png
│     │     └── download.zip
│     └── doc1.rst
│     └── doc2.rst
├── parent_doc.rst

Before this commit, most of the resource files were still located inside
'media' directories holding all the resource files referenced by RST
pages located at the same level as these directories. In the example
above, a single 'media' directory would hold all the resource files
referenced by both `doc1.rst` and `doc2.rst`. Doing so prevented us from
figuring out easily which resource file was referenced by which RST page
and, thus, lead to unused resource files piling up in the repository. It
also made it more complicated to define codeowners regex rules because a
team could not simply be assigned to `/some_page.*` but needed to be
assigned to both `/some_page\.rst` and to the location of 'media'.

In order to help new content writers figure out the guideline when
taking examples from other RST pages, this commit retroactively applies
the guideline to existing resource files and 'media' directories. The
left-over resource files that are not referenced by any RST page are
removed.

task-2497965

Part-of: odoo/documentation#2068
2022-05-20 14:18:54 +02:00
..
01_architecture [MOV] content/*: move resource files into their related page's directory 2022-05-20 14:18:54 +02:00
02_setup [MOV] content/*: move resource files into their related page's directory 2022-05-20 14:18:54 +02:00
03_newapp [MOV] content/*: move resource files into their related page's directory 2022-05-20 14:18:54 +02:00
06_firstui [MOV] content/*: move resource files into their related page's directory 2022-05-20 14:18:54 +02:00
07_basicviews [MOV] content/*: move resource files into their related page's directory 2022-05-20 14:18:54 +02:00
08_relations [MOV] content/*: move resource files into their related page's directory 2022-05-20 14:18:54 +02:00
09_compute_onchange [MOV] content/*: move resource files into their related page's directory 2022-05-20 14:18:54 +02:00
10_actions [MOV] content/*: move resource files into their related page's directory 2022-05-20 14:18:54 +02:00
11_constraints [MOV] content/*: move resource files into their related page's directory 2022-05-20 14:18:54 +02:00
12_sprinkles [MOV] content/*: move resource files into their related page's directory 2022-05-20 14:18:54 +02:00
13_inheritance [MOV] content/*: move resource files into their related page's directory 2022-05-20 14:18:54 +02:00
14_other_module [MOV] content/*: move resource files into their related page's directory 2022-05-20 14:18:54 +02:00
15_qwebintro [MOV] content/*: move resource files into their related page's directory 2022-05-20 14:18:54 +02:00
16_guidelines_pr [MOV] content/*: move resource files into their related page's directory 2022-05-20 14:18:54 +02:00
B_acl_irrules [ADD] developer/howtos: R&D Training 2021-05-18 15:24:16 +02:00
J_reports [ADD] developer/howtos: R&D Training 2021-05-18 15:24:16 +02:00
K_dashboard [ADD] developer/howtos: R&D Training 2021-05-18 15:24:16 +02:00
01_architecture.rst [MOV] content/*: move resource files into their related page's directory 2022-05-20 14:18:54 +02:00
02_setup.rst [MOV] content/*: move resource files into their related page's directory 2022-05-20 14:18:54 +02:00
03_newapp.rst [MOV] content/*: move resource files into their related page's directory 2022-05-20 14:18:54 +02:00
04_basicmodel.rst [FW][FIX] developer/rdtraining: fix typo 2022-04-11 12:42:39 +02:00
05_securityintro.rst [ADD] developer/howtos: R&D Training 2021-05-18 15:24:16 +02:00
06_firstui.rst [MOV] content/*: move resource files into their related page's directory 2022-05-20 14:18:54 +02:00
07_basicviews.rst [MOV] content/*: move resource files into their related page's directory 2022-05-20 14:18:54 +02:00
08_relations.rst [MOV] content/*: move resource files into their related page's directory 2022-05-20 14:18:54 +02:00
09_compute_onchange.rst [MOV] content/*: move resource files into their related page's directory 2022-05-20 14:18:54 +02:00
10_actions.rst [MOV] content/*: move resource files into their related page's directory 2022-05-20 14:18:54 +02:00
11_constraints.rst [MOV] content/*: move resource files into their related page's directory 2022-05-20 14:18:54 +02:00
12_sprinkles.rst [MOV] content/*: move resource files into their related page's directory 2022-05-20 14:18:54 +02:00
13_inheritance.rst [MOV] content/*: move resource files into their related page's directory 2022-05-20 14:18:54 +02:00
14_other_module.rst [MOV] content/*: move resource files into their related page's directory 2022-05-20 14:18:54 +02:00
15_qwebintro.rst [MOV] content/*: move resource files into their related page's directory 2022-05-20 14:18:54 +02:00
16_guidelines_pr.rst [MOV] content/*: move resource files into their related page's directory 2022-05-20 14:18:54 +02:00
A_i18n.rst [ADD] developer/howtos: R&D Training 2021-05-18 15:24:16 +02:00
B_acl_irrules.rst [FIX] developer/rdtraining: fix typos 2022-04-26 11:01:52 +02:00
C_data.rst [IMP] developer/{howtos,reference}: update training to match v15 changes 2021-10-05 14:06:01 +02:00
D_mixins.rst [IMP] rdtraining: add links from enterprise wiki 2022-02-02 13:38:02 +00:00
E_unittest.rst [IMP] developer/{howtos,reference}: update training to match v15 changes 2021-10-05 14:06:01 +02:00
F_jstour.rst [ADD] developer/howtos: R&D Training 2021-05-18 15:24:16 +02:00
G_website.rst [ADD] developer/howtos: R&D Training 2021-05-18 15:24:16 +02:00
H_adv_views.rst [ADD] developer/howtos: R&D Training 2021-05-18 15:24:16 +02:00
I_jswidget.rst [ADD] developer/howtos: R&D Training 2021-05-18 15:24:16 +02:00
J_reports.rst [FW][FIX] developer/rdtraining: comply with the guidelines for report naming 2021-12-16 09:43:11 +00:00
K_dashboard.rst [IMP] developer/{howtos,reference}: update training to match v15 changes 2021-10-05 14:06:01 +02:00
L_cron.rst [ADD] developer/howtos: R&D Training 2021-05-18 15:24:16 +02:00
M_migration.rst [ADD] developer/howtos: R&D Training 2021-05-18 15:24:16 +02:00
N_security.rst [IMP] rdtraining: add links from enterprise wiki 2022-02-02 13:38:02 +00:00
O_perf.rst [ADD] developer/howtos: R&D Training 2021-05-18 15:24:16 +02:00