[FIX] developer/*: consistent code-block language specification

X-original-commit: 387cf15e7f
Part-of: odoo/documentation#3029
This commit is contained in:
Victor Feyens
2022-11-21 16:23:49 +00:00
parent aef7d05dc5
commit 2b75fb4bbb
7 changed files with 14 additions and 14 deletions

View File

@@ -63,7 +63,7 @@ with a dedicated `assets` key which contains a dictionary. The dictionary maps
bundle names (keys) to the list of files they contain (values). It looks
like this:
.. code-block:: py
.. code-block:: python
'assets': {
'web.assets_backend': [

View File

@@ -328,7 +328,7 @@ browser.
Example:
.. code-block:: js
.. code-block:: javascript
import { evaluateExpr } from "@web/core/py_js/py";

View File

@@ -161,11 +161,11 @@ direct child. This component is basically a live representation of the ordered
list of components registered in the main components registry.
API
.. code-block::
.. code-block:: text
interface {
Component: Owl Component class
props?: any
Component: Owl Component class
props?: any
}
@@ -243,7 +243,7 @@ with the following three keys:
For example:
.. code-block:: js
.. code-block:: javascript
import { registry } from "@web/core/registry";
@@ -258,7 +258,7 @@ For example:
The systray registry is an ordered registry (with the `sequence` number):
.. code-block:: js
.. code-block:: javascript
const item = {
Component: MySystrayItem
@@ -291,7 +291,7 @@ The user menu calls all the functions defining items every time it is opened.
Example:
.. code-block:: js
.. code-block:: javascript
import { registry } from "@web/core/registry";

View File

@@ -902,7 +902,7 @@ API
remove the value with the given key from the :ref:`user context<frontend/framework/user_context>`
.. code-block:: js
.. code-block:: javascript
userService.removeFromContext("isFriend")
@@ -914,6 +914,6 @@ API
check if the user is part of a group
.. code-block:: js
.. code-block:: javascript
const isInSalesGroup = await userService.hasGroup("sale.group_sales")