documentation/content
Antoine Vandevenne (anv) 4649c3f8d1 [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#2067
2022-05-20 14:44:52 +02:00
..
administration [MOV] content/*: move resource files into their related page's directory 2022-05-20 14:44:52 +02:00
applications [MOV] content/*: move resource files into their related page's directory 2022-05-20 14:44:52 +02:00
contributing [IMP] contributing: modify titles and headings guidelines 2022-05-05 15:27:05 +02:00
developer [MOV] content/*: move resource files into their related page's directory 2022-05-20 14:44:52 +02:00
legal [FIX] legal/terms: fixups for ES translation of enterprise 2022-01-26 02:22:48 +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:45:07 +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:17:37 +02:00
legal.rst [IMP] Legal: spanish translation of enterprise.rst 2022-01-26 02:22:47 +00:00