documentation/content/developer/reference/frontend
Antoine Vandevenne (anv) 17df8c547a [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#2064
2022-05-20 14:10:01 +02:00
..
mobile [MOV] content/*: move resource files into their related page's directory 2022-05-20 14:10:01 +02:00
services [MOV] content/*: move resource files into their related page's directory 2022-05-20 14:10:01 +02:00
assets.rst [IMP] integration_testing: add information about JS touring 2022-02-02 13:51:54 +00:00
framework_overview.rst [IMP] developer: list content of browser object (js) 2021-11-15 09:25:07 +00:00
hooks.rst [IMP] developer: more info for usePosition JS hook 2021-11-10 14:21:21 +00:00
javascript_cheatsheet.rst [FIX] developer/javascript_cheatsheet: fix a typo 2022-02-02 13:46:19 +00:00
javascript_modules.rst [IMP] developer: rewrite the page on assets 2021-11-08 15:56:49 +00:00
javascript_reference.rst [IMP] developer: clarify options for many2one widget 2022-05-18 12:36:48 +02:00
mobile.rst [MOV] content/*: move resource files into their related page's directory 2022-05-20 14:10:01 +02:00
owl_components.rst [IMP] developer: add missing links in js doc 2021-11-05 10:12:35 +00:00
patching_code.rst [MOV] developer: move section on patching javascript 2021-11-03 17:48:14 +00:00
qweb.rst [IMP] qweb: mention the two possible syntaxes for t-attf 2022-01-12 09:43:14 +00:00
registries.rst [FIX] developer/frontend: typo in the user menu registry example 2022-05-19 13:05:59 +02:00
services.rst [MOV] content/*: move resource files into their related page's directory 2022-05-20 14:10:01 +02:00