Commit Graph

112 Commits

Author SHA1 Message Date
Antoine Vandevenne (anv)
69ff7243bf [IMP] extensions: add content tabs (backport of cf6ca0fb)
closes odoo/documentation#1626

X-original-commit: 286b01a241
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-02-23 13:55:08 +00:00
Antoine Vandevenne (anv)
913d2c23af [FIX] conf: upper-case 'master' in the version switcher
closes odoo/documentation#1601

X-original-commit: a7f0651773
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-02-16 12:01:54 +00:00
Antoine Vandevenne (anv)
2cf55fe863 [FIX] conf: list saas-15.2 in existing versions
closes odoo/documentation#1586

X-original-commit: a64e95d1c6
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-02-11 15:29:53 +00:00
Antoine Vandevenne (anv)
837ee962c2 [IMP] conf: show all relevant versions in the version switcher
From now on, the master branch and the latest released SaaS branch are
always shown. SaaS branches are labeled "Odoo Online".

The list of the versions shown in the switcher is hard-coded to force
their ordering.

The class `dropdown-toggle` is always added to the version|language
switcher regardless of whether other versions|languages are available,
as a quick fix to a CSS issue that occurs when the class is missing.

closes odoo/documentation#1578

X-original-commit: fb469b8211
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-02-11 14:29:57 +00:00
wan
434bb66492 [ADD] extensions: add a custom example admonition
closes odoo/documentation#1503

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-01-28 11:05:14 +00:00
Rémy Baranx (bar)
57e1e31433 [FIX] conf.py: check odoo_dir is a real Odoo sources dir
In `conf.py`, we try to find a Odoo sources folder among `odoo` and
`../odoo` directories without really checking that they really are
Odoo sources folders, leading to doc generation error if it's not the case.

So, to improve that, this commit checks that the selected Odoo sources folder
contains `odoo-bin`.

While we're at it, the logging is also improved to always display the
matching odoo sources' folder and version.

closes odoo/documentation#1340

X-original-commit: f72e557f2c
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Co-authored-by: Antoine Vandevenne <anv@odoo.com>
2021-11-29 10:59:09 +00:00
Simon Genin (ges)
05a0a49a20 [IMP] js: js domain css customization
closes odoo/documentation#1206

Signed-off-by: Simon Genin (ges@odoo) <ges@odoo.com>
2021-11-03 09:19:09 +00:00
Martin Trigaux
4fb6c72d75 [FIX] conf: allow to build on python 3.6
Since odoo/odoo@794677fb6a Odoo requires python 3.7 min.
However, it still runs fine in 3.6 and this is the python version of
the build server.
Fake the version to be able to build the doc on the nightly server.

To be removed once the nightly server is migrated.

closes odoo/documentation#1257

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-11-02 13:33:59 +00:00
Antoine Vandevenne (anv)
b118669860 [REL] freeze 15.0 branch 2021-10-05 13:50:03 +02:00
Antoine Vandevenne (anv)
ac40d2008c [IMP] conf: hide saas branches from the version switcher 2021-09-09 17:22:27 +02:00
Antoine Vandevenne (anv)
5cef86f181 [REL] freeze saas-14.5 branch 2021-09-09 16:25:46 +02:00
Antoine Vandevenne (anv)
d9620d54e7 [MERGE] Forward-port of branch 14.0 to master 2021-07-20 12:57:18 +02:00
Antoine Vandevenne (anv)
6594686062 [MERGE] Forward-port of branch 13.0 to 14.0 2021-07-20 12:55:24 +02:00
Antoine Vandevenne (anv)
5f29b23c70 [MERGE] Forward-port of branch 12.0 to 13.0 2021-07-20 12:53:44 +02:00
Xavier-Do
9a31ed8f67 [IMP] allow to define BUILD_DIR and better odoo detection
Building documentation implies some constraints: the source folder is
readonly, mainly because the sources are shared accros builds.

This implies that nor a symlink and a _build dir cannot be added in the
source directory.

The symlink will work in most cases localy for user with strange
multiverse structure, but if not found, the fallback will check in
parent directory. Most users and runbot will have all sources in the
same directory (both in universe and basic multiverse cases)
-(version?)
   -odoo
   -enterprise
   -upgrade
   -documentation

The second change will check if BUILD_DIR is defined before setting it,
allowing to use 'make BUILD_DIR=../build' to output the documentation
somewhere else.
2021-07-20 12:48:57 +02:00
Antoine Vandevenne (anv)
94e033c5e8 [MERGE] Forward-port of branch 14.0 to master 2021-06-25 16:03:40 +02:00
Martin Trigaux
192d9349c1 [MERFE] Froward port of 13.0 to 14.0 2021-06-14 16:11:22 +02:00
Martin Trigaux
c38dbf59ce [MERGE] Forward port of 12.0 into 13.0 2021-06-14 16:04:49 +02:00
Martin Trigaux
3a915ce2d1 [FIX] conf: translate the theme
Adding the templates_path to make the theme discoverable
Courtesy of https://blog.1a23.com/2020/03/07/translate-text-in-sphinx-templates-and-configurations/
2021-06-14 15:00:16 +02:00
Victor Feyens
79f8baadd3 [MERGE] Forward-port of branch 14.0 to master 2021-05-31 15:27:38 +02:00
Victor Feyens
a1e7024fa0 [MERGE] Forward-port of branch 13.0 to 14.0 2021-05-31 15:16:09 +02:00
Victor Feyens
40afc9d9f0 [MERGE] Forward-port of branch 12.0 to 13.0 2021-05-31 14:54:23 +02:00
Victor Feyens
bfec9a58f9 [FIX] code: typos 2021-05-31 14:44:18 +02:00
Victor Feyens
b88c9ef6a9 [MERGE] Forward-port of branch 14.0 to master 2021-05-17 19:06:45 +02:00
Victor Feyens
8ad392222b [MERGE] Forward-port of branch 13.0 to 14.0 2021-05-17 19:00:31 +02:00
Martin Trigaux
769f5d9728 [FIX] translate the documentation
Monkeypatch the docname_to_domain to avoid having one big "application.pot" file
2021-05-14 16:55:06 +02:00
Martin Trigaux
2d9ad82bd6 [MERGE] forward port of 12.0 to 13.0 2021-05-14 16:29:54 +02:00
Martin Trigaux
bea76554f9 [FIX] translate the documentation
Monkeypatch the docname_to_domain to avoid having one big "application.pot" file
2021-05-14 16:16:06 +02:00
Victor Feyens
b97c0bd230 [MERGE] Forward-port of branch 14.0 to master 2021-05-11 15:27:40 +02:00
Victor Feyens
6aea496f26 [MERGE] Forward-port of branch 13.0 to 12.0 2021-05-11 15:25:37 +02:00
Victor Feyens
3d9afc4c0e [MERGE] Forward-port of branch 12.0 to 13.0 2021-05-11 15:13:58 +02:00
Victor Feyens
ac99ad7abd [REM] *: patchqueue extension
Remove the patchqueue extension from the doc requirements since it isn't 
maintained anymore (raising warnings for recent sphinx versions) and the 
patches to specify code blocks aren't easy to maintain.

Remove hidden code patches, and replaces shown patches by code block / 
literalincludes to keep the useful content.
2021-05-10 17:24:23 +02:00
Martin Trigaux
c946b35f71 [FIX] conf: specify which value is actually needed 2021-05-06 13:42:43 +02:00
Antoine Vandevenne (anv)
903e80a756 [MERGE] Forward-port of branch 14.0 to master 2021-05-04 16:54:16 +02:00
Antoine Vandevenne (anv)
74c9f94d16 [MERGE] Forward-port of branch 13.0 to 14.0 2021-05-04 16:51:07 +02:00
Antoine Vandevenne (anv)
8a6ad77935 [MERGE] Forward-port of branch 12.0 to 13.0 2021-05-04 16:31:06 +02:00
Antoine Vandevenne (anv)
25af2874cd [FIX] conf.py: don't load github_link extension if odoo/ is missing 2021-05-04 16:25:56 +02:00
Antoine Vandevenne (anv)
e3fee2cf46 [REF][MOV] documentation apocalypse
Prior to this commit, the Odoo documentation was mainly split between
two repositories: odoo/odoo/doc and odoo/documentation-user. Some bits
of documentation were also hosted elsewhere (e.g., wiki, upgrade, ...).
This was causing several problems among which:
  - The theme, config, Makefile, and similar technical resources had to
    be duplicated. This resulted in inconsistent layout, features, and
    build environments from one documentation to another.
  - Some pages did not fit either documentation as they were relevant
    for both users and developers. Some were relevant to neither of the
    two (e.g., DB management).
  - Cross-doc references had to be absolute links and they broke often.
  - Merging large image files in the developer documentation would bloat
    the odoo/odoo repository. Some contributions had to be lightened to
    avoid merging too many images (e.g., Odoo development tutorials).
  - Long-time contributors to the user documentation were chilly about
    going through the merging process of the developer documentation
    because of the runbot, mergebot, `odoo-dev` repository, etc.
  - Some contributors would look for the developer documentation in the
    `odoo/documentation-user` repository.
  - Community issues about the user documentation were submitted on the
    `odoo/odoo` repository and vice-versa.

Merging all documentations in one repository will allow us to have one
place, one theme, one work process, and one set of tools (build
environment, ...) for all of the Odoo docs.

As this is a good opportunity to revamp the layout of the documentation,
a brand new theme replaces the old one. It features a new way to
navigate the documentation, centered on the idea of always letting the
reader know what is the context (enclosing section, child pages, page
structure ...) of the page they are reading. The previous theme would
quickly confuse readers as they navigated the documentation and followed
cross-application links.

The chance is also taken to get rid of all the technical dangling parts,
performance issues, and left-overs. Except for some page-specific JS
scripts, the Odoo theme Sphinx extension is re-written from scratch
based on the latest Sphinx release to benefit from the improvements and
ease future contributions.

task-2351938
task-2352371
task-2205684
task-2352544

Closes #945
2021-05-04 15:44:00 +02:00
Victor Feyens
b5274bdd95 [REL] master branch
Pure copy of branch 14.0 atm.

Will contain the master developer documentation once the two documentation
(user & developer) are merged together.
2021-03-25 15:09:25 +01:00
Martin Trigaux
e946532b9b [REV] conf: revert f93fb12e6b
Revert "[FIX] technical: Sphinx deprecation warnings"
Nightly servers still use sphinx 1.7
Revert until we have updated the server to newer versions
2020-10-27 14:22:14 +01:00
Raf Geens
f93fb12e6b [FIX] technical: Sphinx deprecation warnings
`add_stylesheet` and `add_javascript` are deprecated and were
generating a bunch of warnings, replaced them with `add_css_file` and
`add_js_file`.
2020-10-23 12:27:21 +02:00
Martin Trigaux
172d7de99b [FIX] conf: rename the new version
Used in version selector
2020-10-06 13:44:42 +02:00
Olivier Dony
3c44972f02
[ADD] legal: update contracts for new maintenance
- Update Enterprise & Partnership agreement (EN, FR)
- Update legal page index: hide outdated agreements, replace
  with a link to an archive of the old PDFs.
- Add icons for missing files, to make index table layout more consistent
- Add `text-justify` on HTML versions of contracts, for consistency with
  the PDF versions.
- Fix compatibility of PDF generation with recent sphinx versions
  (\sphinxmaketitle instead of \maketitle)
- Re-add NL PDF building, still needs to be updated like all others

Backport of 5b80ed551c from 13.0
2020-06-09 02:13:40 +02:00
Olivier Dony
5b80ed551c
[ADD] legal: update contracts for new maintenance
- Update Enterprise & Partnership agreement (EN, FR)
- Update legal page index: hide outdated agreements, replace
  with a link to an archive of the old PDFs.
- Add icons for missing files, to make index table layout more consistent
- Add `text-justify` on HTML versions of contracts, for consistency with
  the PDF versions.
- Fix compatibility of PDF generation with recent sphinx versions
  (\sphinxmaketitle instead of \maketitle)
- Re-add NL PDF building, still needs to be updated like all others
2020-06-09 02:04:10 +02:00
Antoine Vandevenne (anv)
9e75cc33c4 [MERGE] Forward-port of 12.0 to 13.0 2020-04-06 16:41:33 +02:00
Antoine Vandevenne (anv)
8bd94e4aea [MERGE] Forward-port of 11.0 to 12.0 2020-04-06 16:32:52 +02:00
Antoine Vandevenne (anv)
09bab807aa [IMP] technical: add a static redirection feature for missing pages 2020-04-06 16:31:27 +02:00
Antoine Vandevenne (anv)
9323cba5ce [FIX] config: fix path of odoo logo 2020-02-10 16:56:13 +01:00
Antoine Vandevenne (anv)
5aec6d4fd6 [REM] index: remove references to mementos
Because:
- Mementos are already referenced multiple times in related toctrees.
- Only two mementos are remaining, which is not enough to justify a whole doc category.
- References to mementos are easily broken without being detected at compilation time.
2020-02-06 17:02:55 +01:00
Yannick Tivisse
98331e1f4c [IMP] inventory: Merge continental/anglo-saxon documentation pages 2020-01-06 10:46:49 +01:00