Commit Graph

1637 Commits

Author SHA1 Message Date
Jonathan Castillo
444bdfe31f [REM] content/applications/*: delete unused images 2021-06-08 13:01:16 +02:00
Antoine Vandevenne (anv)
b1b48759ba [IMP] README: update links according to redirects made in 675f7bc8 2021-06-07 08:43:55 +02:00
Odoo Translation Bot
dc7679a20b [I18N] Update translation terms from Transifex 2021-06-06 02:30:18 +02:00
Antoine Vandevenne (anv)
fffaca7384 [FIX] contributing: fix admonition padding
The padding was not correctly set because the admonition was included
in an <ul> element which was itself inside another <ul> element.
The table below the admonition is also moved outside of the <ul>
because it is semantically incorrect.
2021-06-04 17:44:23 +02:00
Antoine Vandevenne (anv)
ddb5523d03 [REM] contributing: remove unused image file 2021-06-04 17:44:23 +02:00
Antoine Vandevenne (anv)
10e0a48ac0 [IMP] contributing: flatten hierarchy of "documentation" pages
The content of the introduction guide is moved to the parent page which
is itself renamed to "Write documentation". The homepage's quick links
are adapted accordingly.

The chance is also taken to move media files in the appropriate folder.

task-2558998
2021-06-04 17:44:23 +02:00
Elisabeth Dickinson
49baf6b4d7
[IMP] odoo_theme: fix layout on esoteric screens 2021-06-04 17:27:11 +02:00
Antoine Vandevenne (anv)
2591ddc6d2 [FIX] odoo_theme: fix crash on menu loading introduced with 675f7bc8 2021-06-04 16:24:58 +02:00
Antoine Vandevenne (anv)
4c6947da4f [IMP] Makefile: update build instructions following merge of 46c21826 2021-06-04 13:49:20 +02:00
Antoine Vandevenne (anv)
675f7bc899 [FIX] odoo_theme: highlight all occurrences of a same entry in the menu
When a page is referenced multiple times in the global toctree, only its
latest TOC entry was highlighted (and expanded if it's a TOC page).
This commit allows a page to be referenced multiple times at any level
of the global TOC while correctly highlighting all of its TOC entries.

task-2551473
2021-06-04 11:44:03 +02:00
Elisabeth Dickinson
7efbf490f6 [FIX] odoo_theme: padding fix in sidenav 2021-05-31 16:04:41 +02:00
Victor Feyens
bfec9a58f9 [FIX] code: typos 2021-05-31 14:44:18 +02:00
Victor Feyens
becf7a207d [FIX] content/applications/*: typos
found with codespell
2021-05-31 14:44:18 +02:00
Victor Feyens
0a4e0610c6 [FIX] content/administration/*: typos 2021-05-31 14:44:18 +02:00
Victor Feyens
e96bc804d3 [FIX] content/developer/*: typos
Found with codespell
2021-05-31 14:44:18 +02:00
Odoo Translation Bot
4483a86907 [I18N] Update translation terms from Transifex 2021-05-30 02:31:25 +02:00
Elisabeth Dickinson
fa267e5cfc [FIX] odoo_theme: design fixes
- change button color (in line with odoo.com)
- adapt margin above h2
- change gray variable on footer (to use the same as everywhere else)
- fix grey background in nav
- fix opacity on icon when active in nav
- add icons on mobile homepage
- fix missing homepage separator in mobile
- fix nav top padding on mobile (hidden by searchbar)
- adjust nav's active links styles
- adjust margin on version switcher
- hide toctree-wrapper when show-content is in meta
- fix highlighted-link on tablet screen
- style toctree-wrapper (a lil bit)
- hide local toc while page is loading
- SCSS linting
2021-05-28 17:06:58 +02:00
Elisabeth Dickinson
74e7da5694 [FIX] odoo_theme: hide searchbar on scroll in mobile 2021-05-26 17:38:29 +02:00
Jairo Llopis
e1adedc2e5
[FIX] mail: how to choose allowed "From" addresses
- Document changes from https://github.com/odoo/odoo/pull/69218.
- Explain that Office365 is now usable.
2021-05-26 11:49:36 +02:00
Elisabeth Dickinson
88f00fe611
[FIX] odoo_theme: remove images from homepage
task-2534617
2021-05-26 11:40:14 +02:00
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
Odoo Translation Bot
8a160c3437 [I18N] Update translation terms from Transifex 2021-05-23 02:31:26 +02:00
Raf Geens
806761eec5
[FIX] developer: correct cr.execute signature in ORM doc
`cr.execute` takes a single argument which is a list, a tuple, or a dict.
2021-05-21 16:56:36 +02:00
Victor Feyens
46c21826fc [IMP] Makefile: build in parallel by default 2021-05-19 15:03:39 +02:00
Victor Feyens
2ddac026f1 [FIX] extensions: support parallel read
Now that patchqueue was removed, we can consider supporting the parallel 
read with our local extensions.

Since we only have basic extensions, not storing any data on the build 
environment, the change mainly consists of specifying the extensions as 
parallelizable.

The only specific case is the html domain, since the base html domain 
requires the support of the method merge_domaindata in parallel read 
mode.  Since we do not need to share anything between the envs for this 
extension, we can simply ignore the method.
2021-05-19 15:03:39 +02:00
Victor Feyens
ba72b396a4 [FIX] redirects: odoo_sh documentation page
This redirection was seemingly forgotten in the nginx redirections deployed online,
we will cover it through the redirects file then.
2021-05-17 15:36:08 +02:00
Victor Feyens
dc49cd9e7b [IMP] *: links improvements
* use absolute paths when cleaner than relative paths
* fix some sphinx issues / todos
2021-05-17 15:32:24 +02:00
Victor Feyens
326de4b39e [FIX] *: absolute links to odoo.com/documentation 2021-05-17 15:32:24 +02:00
Martin Trigaux
c1d09cb79d [I18N] *: export all .pot files
.tx/config: update the list of files

Fetch newly generated .po files from Transifex
2021-05-14 16:55:06 +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
Antoine Vandevenne (anv)
1a0c122500 [IMP] contributing: update contributing guide for new documentation 2021-05-12 18:20:48 +02:00
Antoine Vandevenne (anv)
ca6b1c602d [IMP] README: update README and translate it to Markdown 2021-05-12 18:20:48 +02:00
Elisabeth Dickinson
26d489c6e1
[FIX] theme: improve search bar implementation and behavior
This commit removes the extra search bar that was dedicated to the
mobile layout and adapts the desktop's one to be compatible with mobile.
It also brings back the "Hide Search Matches" button.
2021-05-12 09:49:55 +02:00
Martin Trigaux
0fcc06c2db [FIX] legal: use direct links to pdf files
This avoids to have URL pointing to
https://www.odoo.com/documentation/user/<VERSION>/<LANG>/odoo_enterprise_agreement.pdf
when switching a language

The pdf are built only once and are global per version
2021-05-11 10:36:14 +02:00
Elisabeth Dickinson
9204658456
[FIX] theme: always hide in-page toctrees
Toctree pages will soon hold content and thus be reachable.
The TOC should never be displayed on those pages.
2021-05-11 10:28:13 +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
Ludvig Auvens
73806971a2 [ADD] IoT: New doc about how to connect a scale using the IoT box. 2021-05-10 10:54:50 +02:00
Martin Trigaux
c946b35f71 [FIX] conf: specify which value is actually needed 2021-05-06 13:42:43 +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
Odoo Translation Bot
eac5e9f865 [I18N] Update translation terms from Transifex 2021-05-02 02:30:24 +02:00
KC (ksc)
1343d9915f [FIX] ecommerce: grammar and screenshot in doc about pricing 2021-04-14 16:23:29 +02:00
Odoo Translation Bot
a88479cee5 [I18N] Update translation terms from Transifex 2021-04-11 02:30:26 +02:00
KC (ksc)
4fe354946a [IMP] ecommerce: fix grammatical issues in doc about importing products 2021-04-09 18:25:31 +02:00
Jonathan Castillo
5fae522292 [ADD] contributing: title capitalization rule in content guidelines 2021-04-09 17:45:51 +02:00
Odoo Translation Bot
8e6d9dc7ce [I18N] Update translation terms from Transifex 2021-04-04 02:30:21 +02:00
Jonathan Castillo
0d258c1666 [ADD] guidelines: media files section in content guidelines 2021-04-02 11:59:15 +02:00
tas-odoo
e7825033bc [FIX] contributing: fix a little typo 2021-03-24 11:51:07 -07:00
Victor Feyens
2167002dd7 [MOV][FIX] *: place static files in their place of use
Prepare the incoming documentation refactoring, ensuring the files used by a doc page
are correcly moved together with the page, avoiding broken links during the reorganisation.

Partial backport of f7bedfce2e
to ease forward-ports
2021-03-23 18:40:45 +01:00
Odoo Translation Bot
a6b3f03d28 [I18N] Update translation terms from Transifex 2021-03-07 02:30:21 +01:00