Odoo documentation sources
Go to file
Victor Feyens 10612f0ba7 [FIX] odoo_theme: unclickable :show-content: pages in global toctree
When navigating the themes tutorial (developer/howto/themes), the
rdtraining page wasn't clickable in the global toc, even though it was
specified as :show-content: (note that the rdtraining is only in 14.0+).

The heuristic extracting the pagename from a toctree node wasn't
considering the current depth if the page referenced by the toctree
node was in the same folder than the current page.

Explanation:

We are computing the toctree for the page developer/howtos/themes. One
of the toctree nodes references the rdtraining page, with a relative
link, i.e. `rdtraining.html`.

We were wrongfully looking for `show_content` in the metadata of the
`rdtraining` page, instead of `developer/howtos/rdtraining`, since we
didn't consider the current document depth when the reference didn't
contain any `/`.

This commit ensures that if the current document has a depth > 1, this
depth is currently considered, even for links referencing documents in
the same folder.

task-2538297
2021-05-25 14:13:01 +02:00
.tx [I18N] *: export all .pot files 2021-05-14 16:55:06 +02:00
content [FIX] developer: correct cr.execute signature in ORM doc 2021-05-21 16:56:36 +02:00
extensions [FIX] odoo_theme: unclickable :show-content: pages in global toctree 2021-05-25 14:13:01 +02:00
locale [I18N] Update translation terms from Transifex 2021-05-23 02:31:26 +02:00
static [REF][MOV] documentation apocalypse 2021-05-04 15:44:00 +02:00
.gitignore [REF][MOV] documentation apocalypse 2021-05-04 15:44:00 +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 [FIX] translate the documentation 2021-05-14 16:55:06 +02:00
Makefile [IMP] Makefile: build in parallel by default 2021-05-19 15:03:39 +02:00
README.md [IMP] README: update README and translate it to Markdown 2021-05-12 18:20:48 +02:00
redirects.txt [FIX] redirects: odoo_sh documentation page 2021-05-17 15:36:08 +02:00
requirements.txt [REM] *: patchqueue extension 2021-05-10 17:24:23 +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.

If you have a pull request that is ready for review, request one from the odoo/doc-review team.