Commit Graph

1660 Commits

Author SHA1 Message Date
Romaric PINSET LEPRETRE
c987026527 [FIX] app/website: Gengo doesn't work and can't have worked
Backport of https://github.com/odoo/documentation/pull/1002 .

In V12 and V13, Gengo can't be used on SaaS and Odoo.sh by default
because they don't install the gengo Python library. If the library
is installed on Odoo.sh by the user, it still won't work, because there's
a typo in `base.gengo.translations` here (the -s is missing):
651caf0f59/addons/base_gengo/controller/main.py (L15)

This code is responsible for handling the results returned by Gengo when
the translation is ready. The typo has been present since at least 2016.
Meaning this can't have worked during that period. Fixing that typo
results in the json.loads following it failing due to an unexpected
number of arguments. That code looks it hasn't ran in a long while.

So I propose to remove mention of Gengo from the documentation in V12
and V13 to avoid any future confusion about it possibly working. Since
the feature can't have worked and support for it in V14 has already been
dropped, it doesn't seem worthwhile to attempt to bugfix it at this stage.
2021-08-17 15:35:25 +02:00
Odoo Translation Bot
f49873cfc6 [I18N] Update translation terms from Transifex 2021-08-15 02:30:19 +02:00
Odoo Translation Bot
a6d2fa6df1 [I18N] Update translation terms from Transifex 2021-08-08 02:30:14 +02:00
Victor Feyens
d8684e8963 [FIX] Makefile: avoid confusing // in build dir path
When locally building the doc (aka make), CURRENT_LANG is not defined,
which results in HTML_BUILD_DIR = _build/html//, resulting in commands
& logs like the following

mkdir -p _build/html//_static
pysassc extensions/odoo_theme/static/style.scss _build/html//_static/style.css

This has no impact on linux builds, but could be unclear/confusing for some non tech
users (can it have any impact on other OS's/distros ?)

closes odoo/documentation#1093

Signed-off-by: Antoine Vandevenne (anv) <AntoineVDV@users.noreply.github.com>
2021-08-06 14:52:40 +00:00
Xavier-Do
fd56d8c170 [FIX] makefile: fix overridden css
The previous makefile was compiling css beside the style.scss and
the style.css was copied at the end.

The new makefile compile css directly in the build dir.

Since this file was still present in the source because of the .gitignore,
sphinx was using this old version of style.css, overriding the new compiled
css file at the end.

Removing it from gitignore should helpFix this problem.

This commit also fix some path in makefile.
(not critical but this should fix a potential error in static command)

closes odoo/documentation#1084

Signed-off-by: Antoine Vandevenne (anv) <AntoineVDV@users.noreply.github.com>
2021-08-05 08:18:09 +00:00
Donatienne Pirlot (dopi)
7af926e5aa [REM] developer/upgrade: remove outdated page
task-2613841

closes odoo/documentation#1079

Signed-off-by: Antoine Vandevenne (anv) <AntoineVDV@users.noreply.github.com>
2021-08-03 13:21:24 +00:00
Antoine Vandevenne (anv)
9bad0540b0 [FIX] Makefile: fix CSS compilation for multi-version/lang builds
Commit 547d90a allowed `BUILD_DIR` to be defined from the CLI but didn't
update usages of `HTML_BUILD_DIR`. When building the documentation for
multiple versions and/or languages, we should rely on `HTML_BUILD_DIR`
to point to the appropriate directory.

closes odoo/documentation#1075

Signed-off-by: Antoine Vandevenne (anv) <AntoineVDV@users.noreply.github.com>
2021-08-03 10:06:55 +00:00
Odoo Translation Bot
97524ccda0 [I18N] Update translation terms from Transifex 2021-07-25 02:30:24 +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
Odoo Translation Bot
afdd438818 [I18N] Update translation terms from Transifex 2021-07-18 02:30:17 +02:00
Odoo Translation Bot
bc257a8f5e [I18N] Update translation terms from Transifex 2021-07-11 02:30:18 +02:00
Odoo Translation Bot
ebd932134d [I18N] Update translation terms from Transifex 2021-07-04 02:30:51 +02:00
Odoo Translation Bot
a5ab764c04 [I18N] Update translation terms from Transifex 2021-06-27 02:30:52 +02:00
Jonathan Castillo
c84ac0f7e4 [IMP] admin/odoo.sh: supported versions in "getting_started/create"
task-2581302
2021-06-24 16:48:17 +02:00
Odoo Translation Bot
d8a669e6fc [I18N] Update translation terms from Transifex 2021-06-20 02:30:58 +02:00
Martin Trigaux
cafa11ac70 [I18N] *: export pot files
Including the new sphinx.pot containing the theme translations (filename chosen by sphinx)
2021-06-14 15:01:01 +02:00
Martin Trigaux
207bfd6684 [IMP] extension: mark HTML content as translatable 2021-06-14 15:01:01 +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
Odoo Translation Bot
a040ad6797 [I18N] Update translation terms from Transifex 2021-06-13 02:30:16 +02:00
Antoine Vandevenne (anv)
23a40f9748 [IMP] contributing: encourage flat pages hierarchy
task-2563614
2021-06-11 10:52:35 +02:00
Antoine Vandevenne (anv)
ec1dc7b632 [IMP] contributing: list supported metadata directives
The opportunity is also take to refresh the section about admonitions
and to add undocumented admonitions.

task-2534984
2021-06-11 10:52:35 +02:00
keli brugalli (kbr)
1faf5486a7 [IMP] sales: fix typos
Fixed a couple of english grammar mistakes in the introduction paragraph.
Fixed can be fast-forwaded to 13 and 14 as well.
2021-06-09 16:16:22 +02:00
Antoine Vandevenne (anv)
1d3375f1a8 [IMP] *: exclude empty TOC pages from search results
When searching for a string that can be found in a TOC page's content,
that page is listed in the search results. This is not a wanted behavior
because TOC pages without the 'show-content' metadata directive are not
supposed to be accessible.

This commit adds a 'nosearch' metadata directive to all TOC pages
without a 'show-content' metadata directive, hence removing them from
search results.

task-2527419
2021-06-09 11:55:34 +02:00
Elisabeth Dickinson
c8750ae032
[FIX] odoo_theme: fix header display on small screen widths
The highlight-link was pushing the header height to be on two lines.
It is now absolutely positioned below the searchbar instead of to its right.
The switchers now push themselves to the right instead of being pushed by the searchbar-wrapper.
2021-06-09 11:22:58 +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