Skip to content

Commit 16e9e43

Browse files
Merge branch 'master' of github.com:simplicitesoftware/docusaurus
2 parents 5f62055 + b75c6db commit 16e9e43

File tree

11 files changed

+119
-69
lines changed

11 files changed

+119
-69
lines changed

README.md

Lines changed: 57 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@ $ npm run start
1414

1515
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
1616

17+
## Deployment
18+
19+
The documentation is automatically deployed when changes are pushed to the master branch. GitHub Actions will:
20+
1. Build the documentation
21+
2. Deploy the updated content to GitHub Pages
22+
3. Make it available at the public URL
23+
24+
No manual deployment steps are required - just push your changes to master.
25+
26+
⚠ Build will fail if broken links / anchors are detected
27+
1728
## Creating New Documentation
1829

1930
1. Create a new markdown file (`.md` or `.mdx`) in the appropriate directory under `docs/`.
@@ -22,13 +33,52 @@ This command starts a local development server and opens up a browser window. Mo
2233
- Place related images in this directory
2334
- Reference images using relative paths: `![Alt text](./img/document-name/image-name.png)`
2435

25-
## Deployment
36+
### Documentation metadata
2637

27-
The documentation is automatically deployed when changes are pushed to the master branch. GitHub Actions will:
28-
1. Build the documentation
29-
2. Deploy the updated content to GitHub Pages
30-
3. Make it available at the public URL
38+
Markdown documents can use the following Markdown [front matter](https://docusaurus.io/docs/markdown-features#front-matter) metadata fields, enclosed by a line --- on either side.
3139

32-
No manual deployment steps are required - just push your changes to master.
40+
Example :
41+
```
42+
---
43+
id: doc-markdown
44+
title: Docs Markdown Features
45+
hide_title: false
46+
hide_table_of_contents: false
47+
sidebar_label: Markdown
48+
sidebar_position: 3
49+
pagination_label: Markdown features
50+
custom_edit_url: https://github.com/facebook/docusaurus/edit/main/docs/api-doc-markdown.md
51+
description: How do I find you when I cannot solve this problem
52+
keywords:
53+
- docs
54+
- docusaurus
55+
tags: [docusaurus]
56+
image: https://i.imgur.com/mErPwqL.png
57+
slug: /myDoc
58+
last_update:
59+
date: 1/1/2000
60+
author: custom author name
61+
---
62+
63+
# Markdown Features
64+
65+
My Document Markdown content
66+
```
67+
68+
### Code blocks
69+
70+
You can add a `title` to the code block by adding a title key after the language (leave a space between them).
71+
```js
72+
console.log('What a great log');
73+
```
74+
75+
### Admonitions
76+
77+
In addition to the basic Markdown syntax, we have a special admonitions syntax by wrapping text with a set of 3 colons, followed by a label denoting its type.
78+
79+
See [Admonitions how-to](https://docusaurus.io/docs/markdown-features/admonitions)
80+
81+
82+
### See more
3383

34-
> Build will fail if broken links / anchors are detected
84+
https://docusaurus.io/docs/category/guides

docs/documentation/core/basic-code-examples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ For more details on **Rhino** scripting you can check [the Mozilla Rhino documen
1313

1414
> **Note**:
1515
>
16-
> Object code can be written in Java (or JavaScript which will be executed by the Rhino server-side engine, just like the executed fields), but good practice is to perfer Java language which
16+
> Object code can be written in Java (or JavaScript which will be executed by the Rhino server-side engine, just like the executed fields), but good practice is to prefer Java language which
1717
> include a compilation step and ensure that the syntax of the script is correct. In advanced use cases that are not part of this tutorial, the use of Java gives access > to all of the classic application development tools: step-by-step debugging, unit tests, development in a Java IDE, code quality analysis with Sonar etc..
1818
1919
> Examples are provided both in Rhino and Java so as you can see the syntax differences.

docs/documentation/faq.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ title: FAQ
66
Frequently Asked Question
77
=========================
88

9-
General/installation/operation
9+
General / installation / operation
1010
------------------------------
1111

1212
> Is it possible to use the _foo_ database, the _bar_ application server, the _baz_ JVM version, ...?
1313
14-
<!-- Please refer to the [compatibily tables](/docs/documentation/compatibility). -->
14+
Please refer to the [compatibility tables](/docs/documentation/compatibility).
1515

1616
For details on some specific installation/operation requirements, please refer to the miscellaneous documentation.
1717

@@ -20,7 +20,7 @@ Versions
2020

2121
> What is the current maintenance status of version `x.y`?
2222
23-
<!-- Please check [this document](/docs/versions/versioning.md) and the latest release notes of considered version. -->
23+
Please check [this document](/docs/versions/versioning.md) and the latest release notes of considered version.
2424

2525
Usage
2626
-----
@@ -36,7 +36,7 @@ Design
3636

3737
> Where to starts with to build my first business application?
3838
39-
<!-- A good start is the [Getting started](/docs/tutorial/getting-started), -->
39+
A good start is the [Getting started](/docs/tutorial/welcome.md)
4040

4141
### Business objects
4242

@@ -47,7 +47,7 @@ Not yet, this is in the roadmap for next version. At that stage you still need t
4747
> How can we set the number of rows in list ?
4848
4949
This is a global setting defined at user level (min and max number of rows per lists) and dynamically configurable at list level.
50-
For business objects with few rows you can inhibitate the pagination, then all rows will be displayed
50+
For business objects with few rows you can inhibit the pagination, then all rows will be displayed
5151

5252
Keep in mind that lists with a high number of rows combined with many fields visible on lists will result in huge page volumes with poor performances (and low useability).
5353

@@ -72,25 +72,25 @@ Coding
7272

7373
> Where can I find general documentation and code samples on server side scripting?
7474
75-
<!-- You can browse the [core documentations](./01-core/) for code examples (general, business objects hooks, business workflows hooks, adapters, publications, dispositions, ...). -->
75+
You can browse the [core documentations](/docs/category/core) for code examples (general, business objects hooks, business workflows hooks, adapters, publications, dispositions, ...).
7676

7777
> Are there some limitations or usual traps on the server side scripts that I should be aware of?
7878
79-
<!-- **Yes!** Please refer to [this documentation](/docs/documentation/core/basic-code-examples#javascript-engine-traps) for details on things to avoid (to avoid headhaches). -->
79+
**Yes!** Please refer to [this documentation](/docs/documentation/core/basic-code-examples) for details on things to avoid (to avoid headaches).
8080

8181
### Integration/APIs
8282

8383
> Where can I find general documentation on integration interfaces, APIs, code samples...?
8484
85-
<!-- You can browse the [documentations](./): -->
86-
87-
<!-- * Code samples for core configuration items (business objects, workflows, disposition, adapters, ...) in the [core documentations](./01-core/) -->
88-
<!-- * Integration interfaces usage (CLI, web services, ...) in the [integration documentations](./02-integration/) -->
89-
<!-- * Helper libs (Ajax, ...) in the [APIs documentations](./03-apis/) -->
85+
* Code samples for core configuration items (business objects, workflows, disposition, adapters, ...) in the [core documentation](/docs/category/core)
86+
* Integration interfaces usage (CLI, web services, ...) in the [integration documentation](/docs/category/integration)
87+
* Helper libs (Ajax, ...) in the [APIs documentation](/docs/category/librairies)
9088

9189
Configuration
9290
-------------
9391

92+
>
93+
9494
> How can I configure the logging of the application?
9595
96-
<!-- Please refer to [this document](/docs/documentation/misc/logging) -->
96+
Please refer to [this document](/docs/documentation/misc/logging.md)

docs/documentation/integration/webservices/custom-services.md

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@ sidebar_position: 60
33
title: Custom services
44
---
55

6-
Custom services
7-
===============
6+
# Custom services
87

9-
Introduction
10-
------------
8+
## Introduction
119

1210
This document describes how to implement custom services (e.g. custom REST APIs) using external objects.
1311

@@ -29,34 +27,35 @@ The calls examples are given using the `curl` command line tool
2927
> In versions 4.0+ a technical session is used to avoid taking care of the session cookie.
3028
3129
For an application deployed on `myapp` webapp root, the base URL of the custom services is:
30+
3231
```
3332
http[s]://<host[:<port>]>/myapp/api/ext
3433
```
35-
For an application deployed on the default webapp root, the base URL of the custom services is:
34+
35+
For an application deployed on the default webapp root, the base URL of the custom services is :
36+
3637
```
3738
http[s]://<host[:<port>]>/api/ext
3839
```
40+
3941
It will be noted `<base URL>` in the rest of the document.
4042

4143
> **Warning**: In production the services endpoint's URL should be restricted only to allowed origins e.g. using URL filtering based on request's origin IP address or similar approaches.
4244
43-
Scalability and performances
44-
----------------------------
45+
## Scalability and performances
4546

4647
For optimal performances under high concurrent volume it may be useful to enable the API pooling by setting the `USE_WEBSERVICES_OBJECTPOOL` to `yes`, especially
4748
when using a single user (e.g. calls from a "public" frontend).
4849

4950
This allow calls to the services to be processed by a per-user pool of external objects.
50-
The pool size can be adjusted/limied using the `WEBSERVICES_EXTOBJECTPOOL_MAXPEROBJECT` and `WEBSERVICES_EXTOBJECTPOOL_MAXTOTAL` system parameters.
51+
The pool size can be adjusted/limied using the `WEBSERVICES_EXTOBJECTPOOL_MAXPEROBJECT` and `WEBSERVICES_EXTOBJECTPOOL_MAXTOTAL` system parameters.
5152

52-
Service implementation
53-
----------------------
53+
## Service implementation
5454

5555
A custom service is just a plain external object (check [this document](/docs/documentation/core/externalobject-code-examples) for general principles of external objects).
5656

5757
In particular this external object needs to be granted to the user that will be calling it on the API endpoint.
5858

59-
6059
### Java
6160

6261
In **Java** as of version 4.0.P23 you can extends the more convenient `com.simplicite.webapp.services.RESTServiceExternalObject` helper class
@@ -91,34 +90,34 @@ public class MyServiceV1 extends com.simplicite.webapp.services.RESTServiceExter
9190

9291
> **Note**: by default the non implemented method `get/post/put/del/head` of this helper class return a plain 400 ("Bad request") error.
9392
94-
Service call
95-
------------
93+
## Service call
9694

9795
Then the service could be called (using `POST` method in this example) like this:
96+
9897
```shell
99-
curl <credentials> -X POST -H "Content-type:application/json" -d @req.json "<base URL>/MyServiceV1"
98+
curl <credentials> -X POST -H "Content-type:application/json" -d @req.json "<base URL>/MyServiceV1"
10099
```
100+
101101
Where, for instance if `req.json` is:
102102

103103
```json
104104
{
105-
"name": "Bob"
105+
"name": "Bob"
106106
}
107107
```
108108

109109
The result is then:
110110

111111
```json
112112
{
113-
"request" : {
114-
"name": "Bob"
115-
},
116-
"response": "Hello Bob!"
113+
"request": {
114+
"name": "Bob"
115+
},
116+
"response": "Hello Bob!"
117117
}
118118
```
119119

120-
Mapped business object services helper class
121-
--------------------------------------------
120+
## Mapped business object services helper class
122121

123122
As of version 4.0.P23 a high-level helper class `com.simplicite.webapp.services.RESTMappedObjectsExternalObject`
124123
is provided to simply expose Simplicit&eacute; business object CRUD in a simplified and customized way.
@@ -159,4 +158,3 @@ With the above mapping the user and responsibilities standard objects are availa
159158
- `/api/v1/users/1/user-resps` select (GET) the responsibilities of user with row ID `1`
160159

161160
An OpenAPI schema is available on `/api/v1/openapi.yml`
162-

docs/documentation/integration/webservices/git-repositories.md

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@ sidebar_position: 20
33
title: Git repositories
44
---
55

6-
Git repositories (/git)
7-
================
6+
# Git repositories (/git)
87

98
As of **version 3.2 MAINTENANCE 03**, a new endpoint is available to export/import modules using [Git](https://git-scm.com/) over HTTP(S).
109

1110
This feature relies on the Eclipse [JGit](https://github.com/eclipse-jgit/jgit) library.
1211

1312
> **Warning**: In production this Git endpoint's URL should be restricted only to allowed origins e.g. using URL filtering on request's origin IP address or similar approaches.
1413
15-
Configuration
16-
-------------
14+
## Configuration
1715

1816
The Git repositories are stored on the server file system.
1917

@@ -26,27 +24,26 @@ This can be done either:
2624

2725
Then you also need to set the `USE_GIT` system parameter to `yes`.
2826

29-
Export
30-
------
27+
## Export
3128

3229
To export the `MyModule` module as a Git repository the first thing to do is to create or update the module's repository
3330
using the dedicated action on the _Module_ object:
3431

3532
![Commit module to Git repository](img/git-repositories/git-repositories-commitmodule.png)
3633

3734
Then you can clone the module's repository by:
35+
3836
```shell
39-
git clone http(s)://<host name>[/<app context root>]/git/<module name>
37+
git clone http(s)://<host name>[/<app context root>]/git/<module name>
4038
```
39+
4140
The credentials you have to use in this case are the same as the one you can use for the I/O interface.
4241

43-
Import
44-
------
42+
## Import
4543

4644
Any `git push [origin]` on the cloned module's repository triggers a module import (e.g. after having made some local changes or to upgrade another instance by pushing on another remote).
4745

48-
Import from an origin remote
49-
----------------------------
46+
## Import from an origin remote
5047

5148
It is possible to configure a module that is linked to an external Git repository by adding following settings to your module:
5249

@@ -66,7 +63,7 @@ E.g. from another instance's module repository:
6663
Any call to the _Import module_ action will then result in either a clone or a pull on the configured remote Git repository.
6764

6865
> Typical use case is to link a "secondary" instance to a "primary" instance. In such a case there are 2 possible ways to export/import a module from the "primary" to the "secondary" instance:
69-
>
66+
>
7067
> - Directly use the _Import module_ action from the "secondary" instance (that will be pulling last commit(s) from the "primary" instance)
7168
> - Use a clone of the "primary" instance Git repository configured with an additional remote that points to the "secondary" instance.
7269
> Then `git pull` will pull from the "primary" instance and `git push <remote name>` will push to the "secondary" instance.
@@ -87,8 +84,7 @@ E.g. from a **public** GitHub repository:
8784
As of version 5.2, you can set the JVM properties (`remote.git.username/password`) or the environment variables (`REMOTE_GIT_USERNAME/PASSWORD`)
8885
if you want to avoid configuring username/password credentials in your module's settings. A **much better approach** being to use a SSH URI with configured SSH public/private keys.
8986

90-
Advanced
91-
--------
87+
## Advanced
9288

9389
The Git repositories created/cloned by Simplicit&eacute;:
9490

docs/versions/release-notes/v5-1.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
sidebar_position: 70
33
title: ❌ v5.1
4+
last_update:
5+
date: 2023-10-31
46
---
57

68
Version 5.1.x release note

docs/versions/release-notes/v6-0.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
sidebar_position: 40
33
title: ❌ v6.0
4+
last_update:
5+
date: 2024-10-31
46
---
57

68
Version 6.0 release note

docs/versions/versioning.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ Versioning
1010

1111
| **Version** | **Maintenance State** | **Support type** | **Release date** | **Maintenance end date** | **Docker images tags** | **Template branch** |
1212
|-------------|----------------------------|------------------|---------------------------------------------|---------------------------------------------|-------------------------------------|---------------------|
13-
| `6.3` | ⚠️ Alpha | Not applicable | *<abbr title="To Be Determined">TBD</abbr>* | *<abbr title="To Be Determined">TBD</abbr>* | `6-alpha[-light]` | `6.3[-light]` |
13+
| `6.3` | 🚧 Alpha | Not applicable | *<abbr title="To Be Determined">TBD</abbr>* | *<abbr title="To Be Determined">TBD</abbr>* | `6-alpha[-light]` | `6.3[-light]` |
1414
| `6.2` |**Current release** | Current | Feb 10th, 2025 | *<abbr title="To Be Determined">TBD</abbr>* | `6[-light]`, `6.2[-light]`, `6.2.x` | `6.2[-light]` |
15-
| `6.1` | ☑️ Maintained | Short term (STS) | July 10th, 2024 | May 11th, 2025 | `6.1[-light]`, `6.1.x` | `6.1[-light]` |
16-
| `6.0` | ❌ Expired! | Short term (STS) | January 31st, 2024 | October 31th, 2024 | `6.0[-light]`, `6.0.x` | `6.0[-light]` |
17-
| `5.3` | ☑️ Maintained | Long-term (LTS) | April 24th, 2023 | January 31st, 2027 | `5[-light]`, `5.3[-light]`, `5.3.x` | `5.3[-light]` |
18-
| `5.2` | ❌ Expired! | Short term (STS) | April 20th, 2022 | September 30th, 2023 | `5.2[-light]`, `5.2.x` | `5.2[-light]` |
19-
| `5.1` | ❌ Expired! | Short term (STS) | September 1st, 2021 | October 31st, 2022 | `5.1[-light]`, `5.1.x` | `5.1[-light]` |
20-
| `5.0` | ❌ Expired! | Short term (STS) | January 11th, 2021 | September 30th, 2021 | `5.0[-light]`, `5.0.x` | `5.0[-light]` |
21-
| `4.0` | ❌ Expired! | Long-term (LTS) | 2018 | January 15th, 2024 | `4[-light]`, `4.0[-light]` | `4.0[-light]` |
22-
| `3.x` | ❌ Expired! | Long-term (LTS) | 2014 (for 3.0) | July 3rd, 2020 | `3.x` | `3.x` |
15+
| `6.1` | ☑️ Maintained | Short term (STS) | July 10th, 2024 | May 11th, 2025 | `6.1[-light]`, `6.1.x` | `6.1[-light]` |
16+
| `6.0` | ❌ Expired | Short term (STS) | January 31st, 2024 | October 31th, 2024 | `6.0[-light]`, `6.0.x` | `6.0[-light]` |
17+
| `5.3` | ☑️ Maintained | Long-term (LTS) | April 24th, 2023 | January 31st, 2027 | `5[-light]`, `5.3[-light]`, `5.3.x` | `5.3[-light]` |
18+
| `5.2` | ❌ Expired | Short term (STS) | April 20th, 2022 | September 30th, 2023 | `5.2[-light]`, `5.2.x` | `5.2[-light]` |
19+
| `5.1` | ❌ Expired | Short term (STS) | September 1st, 2021 | October 31st, 2022 | `5.1[-light]`, `5.1.x` | `5.1[-light]` |
20+
| `5.0` | ❌ Expired | Short term (STS) | January 11th, 2021 | September 30th, 2021 | `5.0[-light]`, `5.0.x` | `5.0[-light]` |
21+
| `4.0` | ⛔ Outdated! | Long-term (LTS) | 2018 | January 15th, 2024 | `4[-light]`, `4.0[-light]` | `4.0[-light]` |
22+
| `3.x` | ⛔ Outdated! | Long-term (LTS) | 2014 (for 3.0) | July 3rd, 2020
2323

2424
Some interchangeable terms:
2525
- **Current release**: release, latest version, latest stable

0 commit comments

Comments
 (0)