Commit Graph

84 Commits

Author SHA1 Message Date
Victor Feyens
8ad392222b [MERGE] Forward-port of branch 13.0 to 14.0 2021-05-17 19:00:31 +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
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)
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
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
Martin Trigaux
f5833b7f1d [IMP] documentation: make the multiversion, multilang work
Keep the language in multilang versions of pages. The canonical should look like:

    /documentation/user/12.0/sale.html -> /documentation/user/13.0/sale.html
    /documentation/user/11.0/fr/website.html -> /documentation/user/13.0/fr/website.html

Needs the changes at odoo/saas-automation#40 that will change the
canonical_root
- from https://www.odoo.com/documentation/user/
- to https://www.odoo.com/documentation/user/12.0/

This way, the language switcher will keep the current version,
changing from English to French will make
/documentation/user/12.0/website.html -> /documentation/user/12.0/fr/website.html
(and not -> /documentation/user/13.0/website.html as before)
2019-12-13 15:41:44 +01:00
Martin Trigaux
89594d5128 [IMP] documentation: make the multiversion, multilang work
Keep the language in multilang versions of pages. The canonical should look like:

    /documentation/user/12.0/sale.html -> /documentation/user/13.0/sale.html
    /documentation/user/11.0/fr/website.html -> /documentation/user/13.0/fr/website.html

Needs the changes at odoo/saas-automation#40 that will change the
canonical_root
- from https://www.odoo.com/documentation/user/
- to https://www.odoo.com/documentation/user/12.0/

This way, the language switcher will keep the current version,
changing from English to French will make
/documentation/user/12.0/website.html -> /documentation/user/12.0/fr/website.html
(and not -> /documentation/user/13.0/website.html as before)
2019-12-13 15:41:21 +01:00
Martin Trigaux
a8e34d850e [IMP] documentation: make the multiversion, multilang work
Keep the language in multilang versions of pages. The canonical should look like:

    /documentation/user/12.0/sale.html -> /documentation/user/13.0/sale.html
    /documentation/user/11.0/fr/website.html -> /documentation/user/13.0/fr/website.html

Needs the changes at odoo/saas-automation#40 that will change the
canonical_root
- from https://www.odoo.com/documentation/user/
- to https://www.odoo.com/documentation/user/12.0/

This way, the language switcher will keep the current version,
changing from English to French will make
/documentation/user/12.0/website.html -> /documentation/user/12.0/fr/website.html
(and not -> /documentation/user/13.0/website.html as before)
2019-12-13 15:40:52 +01:00
Martin Trigaux
3a45ba958f [IMP] config: add canonical url
Inspired by odoo/odoo@958f9106dd (which was lost by the way)
2019-12-12 15:37:22 +01:00
Martin Trigaux
b1dabedf81 [FIX] conf: avoid // urls
e.g. https://www.odoo.com/documentation/user/13.0//crm.html when
creating link with no branch/lang name
2019-12-12 15:37:22 +01:00
Martin Trigaux
1f51fda2e8 [IMP] _extension: add languages link
To refer the pages in different languages for better indexing
2019-12-12 15:37:22 +01:00
Martin Trigaux
d03b078ad6 [IMP] config: add canonical url
Inspired by odoo/odoo@958f9106dd (which was lost by the way)
2019-12-12 15:36:34 +01:00
Martin Trigaux
05f3db3d35 [FIX] conf: avoid // urls
e.g. https://www.odoo.com/documentation/user/13.0//crm.html when
creating link with no branch/lang name
2019-12-12 15:36:30 +01:00
Martin Trigaux
538eecd2db [IMP] _extension: add languages link
To refer the pages in different languages for better indexing
2019-12-12 15:36:25 +01:00
Martin Trigaux
942a066873 [IMP] config: add canonical url
Inspired by odoo/odoo@958f9106dd (which was lost by the way)
2019-12-11 08:42:55 +01:00
Martin Trigaux
714cf317cf [FIX] conf: avoid // urls
e.g. https://www.odoo.com/documentation/user/13.0//crm.html when
creating link with no branch/lang name
2019-12-11 08:40:54 +01:00
Martin Trigaux
7f7d5109db [IMP] _extension: add languages link
To refer the pages in different languages for better indexing
2019-12-11 08:40:48 +01:00
Xavier Morel
555b71c0cd [FIX] plug chart of accounts & journal entries widgets on explicit classes
Sections get an id automatically generated from the title, "journal
entries" and "chart of accounts" are pretty generic concepts, so the
widgets looking for these ids can get enabled on sections they're not
intended to live in.

On the other hand, Sphinx is not likely to generically create classes
for these concepts without being explicitly prompted (via
e.g. rst-class).
2019-11-14 11:35:39 +01:00
Olivier Dony
6e85ff00fc
[IMP] legal: backport latest changes from 12.0 2019-08-09 02:27:37 +02:00
Olivier Dony
73bf5defd0
[FIX] conf: correct version number 2019-08-08 10:55:31 +02:00
Olivier Dony
ce1465c38b
[FIX] legal: review + publish Enterprise (ES) version 2019-08-08 03:58:14 +02:00
Martin Trigaux
b40b067757 [FIX] conf: update version number 2018-11-06 09:09:24 +01:00
Martin Trigaux
47d2aed890 [MERGE] forwardport of 10.0 to 11.0 2018-10-29 15:21:00 +01:00
Martin Trigaux
cd41235917 [ADD] conf: display version number in the switcher app 2018-10-29 15:19:33 +01:00
Martin Trigaux
dea43fca7a [ADD] documentation will be translated in Ukranian too now 2018-08-23 16:22:41 +02:00
Martin Trigaux
1aa446a783 [FIX] conf: set release version
Allow to have a title
Odoo 11.0 documentation
instead of
Odoo Business 0.1 documentation

opw-1832694
2018-04-03 08:33:06 +02:00
Martin Trigaux
2744fd9298 [FIX] conf: set release version
Allow to have a title
Odoo 10.0 documentation
instead of
Odoo Business 0.1 documentation

opw-1832694
2018-04-03 08:32:24 +02:00
Olivier Dony
a11241672b [ADD] legal: translations for legal docs
Some are only drafts, more coming later.
2018-03-16 20:10:43 +01:00
Yannick Tivisse
febd07cc80 [FIX] mementoes: Fix some terms/computation/links 2017-06-23 14:21:37 +02:00
Martin Trigaux
cb5f4765d3 [ADD] link to business memento
Was in technical doc, removed at odoo/odoo@411f82081b
task id 34230
2017-06-16 16:28:03 +02:00
Damien Bouvy
cdae67fb55
[ADD] legal: terms of sales + pdf versions 2017-05-04 14:06:32 +02:00
Martin Trigaux
6778e3691f [FIX] bump version to 10.0 in config file 2017-03-23 15:57:34 +01:00
Olivier Dony
133117c33e [ADD] legal: french translation of enterprise agreement 2016-06-23 03:32:44 +02:00