Skip to content

Commit

Permalink
docs: update 8.2 to new format (#781)
Browse files Browse the repository at this point in the history
* RM#86101
  • Loading branch information
vhu-axelor authored Oct 29, 2024
1 parent 797d7f6 commit 4a99a44
Show file tree
Hide file tree
Showing 48 changed files with 96 additions and 124 deletions.
3 changes: 1 addition & 2 deletions docs/doc/en/Application/Creation_d_un_ecran.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
id: Création d’un écran
sidebar_position: 3
sidebar_class_name: icon
description: ''
---

# Screen creation
Expand Down
5 changes: 2 additions & 3 deletions docs/doc/en/Application/Creation_d_un_menu.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
id: Création d’un menu
sidebar_position: 4
sidebar_class_name: icon
description: ''
---

## Creating a menu
# Creating a menu

The definition of a menu requires the definition of a screen to be displayed when the user selects the menu entry in the drawer.

Expand Down
5 changes: 2 additions & 3 deletions docs/doc/en/Application/Creation_d_un_module.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
id: Création d’un module
sidebar_position: 5
sidebar_class_name: icon
description: ''
---

## Creating a module
# Creating a module

The application uses a module structure. Each functional package must export an object in the _Module_ format defined in the **CORE** package.

Expand Down
3 changes: 1 addition & 2 deletions docs/doc/en/Application/Creations_d_un_appel_API.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
id: Création d’un appel API
sidebar_position: 2
sidebar_class_name: icon
description: ''
---

# Creating an API call
Expand Down
5 changes: 2 additions & 3 deletions docs/doc/en/Application/Gestion_des_composants.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
id: Gestion des composants
sidebar_position: 1
sidebar_class_name: icon
description: ''
---

# Component management
Expand Down Expand Up @@ -61,7 +60,7 @@ axelor-mobile/

Once in the stories folder, components are sorted by type (atoms, molecules, organisms & templates) in the same way as in the package sources.

A story is a component use case. In the storybook, you need to successfully re-create all the component's use cases to enable better documentation. To create a story, you need to create a new file in the _stories_ folder, in the right component category. The nomenclature for the file name is _<component name>.stories.tsx_.
A story is a component use case. In the storybook, you need to successfully re-create all the component's use cases to enable better documentation. To create a story, you need to create a new file in the _stories_ folder, in the right component category. The nomenclature for the file name is `<component name>.stories.tsx`.

There can then be two types of stories: fixed stories in the style of a catalog, or customizable stories where the user can modify each attribute to make the combinations of his choice.

Expand Down
6 changes: 0 additions & 6 deletions docs/doc/en/Application/Index.md

This file was deleted.

8 changes: 8 additions & 0 deletions docs/doc/en/Application/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"className": "cloud-fill",
"label": "Creating your own app",
"position": 5,
"link": {
"type": "generated-index"
}
}
19 changes: 10 additions & 9 deletions docs/doc/en/Application/buildCustomization.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
---
id: buildCustomization
sidebar_position: 6
sidebar_class_name: icon
description: ''
---

# Android build customization
# Build customization

## Name modification
## Android

### Name modification

To modify the name displayed under the application once installed, you need to modify the value associated with the _app_name_ key in the `android > app > src > main > res > values > strings.xml` file.

## Changing the identifier
### Changing the identifier

To create an application distinct from Axelor Mobile, you need to modify the package name associated with the application in the native Android code. There's no easy way to do this. You need to perform a global search in the Android folder and replace all occurrences of the standard package name _com.aosmobile_, with and without capital letters, with the name of the new package. You should also remember to modify the structure of the _java_ folders in the main and debug sections to adapt to the new package name.

The last step is to modify the package name at the root of the project, as well as the version, and to modify the identifier used by Metro in the `app.json` file to use the identifier of the new application.

## Modifying the application icon
### Modifying the application icon

To modify the application icon, open the application's Android folder in **Android Studio**. The project may take some time to initialize. Once the IDE is ready, create a new _Image Asset_ in the resources folder.

Expand All @@ -28,13 +29,13 @@ Next, you need to provide the path to the image to be used for generation. It's

Then simply validate the configuration and Android Studio will generate all the icon sizes and shapes for the application.

# iOS build customization
## iOS

## Name and ID modification
### Name and ID modification

To change the name or identifier of an iOS application, use XCode and open the application's General tab. In the _identity_ panel, modify the _Display Name_ and/or _Bundle Identifier_ with the desired values. The changes should then appear in the `Info.plist` and `project.pbxproj` files.

## Application icon modification
### Application icon modification

To modify the application icon, open the application's ios folder in **Xcode**. The project may take some time to initialize. Once the IDE is ready, modify the AppIcon file in `AosMobile > Images`. To only have to load a single image, select _Single Size_ in the right sidebar.

Expand Down
3 changes: 1 addition & 2 deletions docs/doc/en/Architecture.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
id: Architecture de l'application
sidebar_position: 3
sidebar_class_name: icon architecture
description: ''
---

# Application architecture
Expand Down
3 changes: 1 addition & 2 deletions docs/doc/en/GettingStarted.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
id: Getting Started
sidebar_position: 2
sidebar_class_name: icon started
description: ''
---

# Getting started
Expand Down
4 changes: 1 addition & 3 deletions docs/doc/en/Introduction.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
---
id: Introduction
slug: /
sidebar_position: 1
sidebar_label: Introduction
sidebar_class_name: icon introduction
description: ''
---

# Introduction
Expand Down
5 changes: 2 additions & 3 deletions docs/doc/en/Outil/Gestion_des_headers.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
id: Gestions des headers
sidebar_position: 6
sidebar_class_name: icon gestions des headers
description: ''
---

# Header management
Expand Down Expand Up @@ -31,7 +30,7 @@ const useCustomerDeliveryDetailsActions = () => {

The `headerActionsProvider` tool must therefore be used to associate a key with an object containing all the information required for the various header actions.

A nomenclature has been set up to help understand the origin of a key: _<Module><Object><Screen type>._.
A nomenclature has been set up to help understand the origin of a key: `<Module><Object><Screen type>`.

Actions are defined through a structure named `HeaderOptions` :

Expand Down
3 changes: 1 addition & 2 deletions docs/doc/en/Outil/Gestion_du_theme.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
id: Themes
sidebar_position: 2
sidebar_class_name: icon themes
description: ''
---

# Theme management
Expand Down
3 changes: 1 addition & 2 deletions docs/doc/en/Outil/Gestions_de_camera.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
id: Gestion de la camera
sidebar_position: 8
sidebar_class_name: icon gestion de la camera
description: ''
---

# Using the camera and/or scanner
Expand Down
5 changes: 2 additions & 3 deletions docs/doc/en/Outil/Gestions_de_traductions.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
id: Traductions
sidebar_position: 1
sidebar_class_name: icon traductions
description: ''
---

# Translation management
Expand All @@ -14,7 +13,7 @@ Each module must include in its architecture an i18n folder with json files, one

Within the translation files, the keys must follow a nomenclature in order to structure all translations and identify their origin.

The nomenclature is as follows: _<Module>\_<Signification>_.
The nomenclature is as follows: `<Module>\_<Signification>`.

All translation keys must be written in **English** to enable the user to continue using the application even if the translation value has not been found.

Expand Down
3 changes: 1 addition & 2 deletions docs/doc/en/Outil/Gestions_des_API_providers.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
id: API providers
sidebar_position: 4
sidebar_class_name: icon API providers
description: ''
---

# API provider management
Expand Down
8 changes: 8 additions & 0 deletions docs/doc/en/Outil/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"className": "tools",
"label": "Tools at your disposal",
"position": 4,
"link": {
"type": "generated-index"
}
}
3 changes: 1 addition & 2 deletions docs/doc/en/Outil/gestion_des_erreurs.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
id: Gestions des erreurs
sidebar_position: 3
sidebar_class_name: icon gestions des erreurs
description: ''
---

# Error handling
Expand Down
5 changes: 2 additions & 3 deletions docs/doc/en/Outil/gestions_de_store.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
id: Gestion de store
sidebar_position: 5
sidebar_class_name: icon gestion de store
description: ''
---

# Store management
Expand Down Expand Up @@ -44,7 +43,7 @@ export const handlerApiCall = ({
}: ApiHandlerProps)
```

When creating the asynchronous function, it's important to respect the following nomenclature for creating the type: _<slice name>/<function name>._ There is also a nomenclature for creating the translation keys used to describe the action executed: _"<module name>SliceAction<action>"_. In addition, to make translation files easier to read, translations for reducer actions are grouped together at the end of the files.
When creating the asynchronous function, it's important to respect the following nomenclature for creating the type: `<slice name>/<function name>`. There is also a nomenclature for creating the translation keys used to describe the action executed: `<module name>SliceAction<action>`. In addition, to make translation files easier to read, translations for reducer actions are grouped together at the end of the files.

Next, we need to build a slice to indicate the behavior to be adopted in the various query states (pending, rejected or fulfilled). In order to access the store state for this slice, it must be exported, then the reducer created must be exported so that it can be added to the module export.

Expand Down
5 changes: 0 additions & 5 deletions docs/doc/en/Outil/index.md

This file was deleted.

3 changes: 1 addition & 2 deletions docs/doc/en/Outil/permissionManagement.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
id: permissionManagement
sidebar_position: 9
sidebar_class_name: icon permissions
description: ''
---

# Permission management
Expand Down
3 changes: 1 addition & 2 deletions docs/doc/en/Outil/selectionManagement.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
id: selectionManagement
sidebar_position: 7
sidebar_class_name: icon selections
description: ''
---

# Selections management
Expand Down
3 changes: 1 addition & 2 deletions docs/doc/en/Outil/toolManagenent.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
id: toolManagement
sidebar_position: 10
sidebar_class_name: icon tools
description: ''
---

# Quick actions management
Expand Down
3 changes: 1 addition & 2 deletions docs/doc/en/pratique.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
id: Bonnes pratiques de dévleloppement
sidebar_position: 6
sidebar_class_name: icon pratique
description: ''
---

# Good development practices
Expand Down
3 changes: 1 addition & 2 deletions docs/doc/fr/Application/Creation_d_un_ecran.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
id: Création d’un écran
sidebar_position: 3
sidebar_class_name: icon
description: ''
---

# Création d’un écran
Expand Down
3 changes: 1 addition & 2 deletions docs/doc/fr/Application/Creation_d_un_menu.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
id: Création d’un menu
sidebar_position: 4
sidebar_class_name: icon
description: ''
---

# Création d’un menu
Expand Down
3 changes: 1 addition & 2 deletions docs/doc/fr/Application/Creation_d_un_module.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
id: Création d’un module
sidebar_position: 5
sidebar_class_name: icon
description: ''
---

# Création d’un module
Expand Down
3 changes: 1 addition & 2 deletions docs/doc/fr/Application/Creations_d_un_appel_API.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
id: Création d’un appel API
sidebar_position: 2
sidebar_class_name: icon
description: ''
---

# Création d’un appel API
Expand Down
3 changes: 1 addition & 2 deletions docs/doc/fr/Application/Gestion_des_composants.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
id: Gestion des composants
sidebar_position: 1
sidebar_class_name: icon
description: ''
---

# Gestion des composants
Expand Down
6 changes: 0 additions & 6 deletions docs/doc/fr/Application/Index.md

This file was deleted.

8 changes: 8 additions & 0 deletions docs/doc/fr/Application/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"className": "cloud-fill",
"label": "Création de votre propre application",
"position": 5,
"link": {
"type": "generated-index"
}
}
Loading

0 comments on commit 4a99a44

Please sign in to comment.