Skip to content

Commit da1ba1e

Browse files
committed
Merge branch 'pr/452'
2 parents 7e19af3 + 5a95f00 commit da1ba1e

File tree

1,495 files changed

+16676
-8849
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,495 files changed

+16676
-8849
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ jobs:
2020
- name: Download artifact
2121
uses: actions/download-artifact@v4
2222
with:
23-
name: build
23+
pattern: build-locale-*
24+
merge-multiple: true
25+
path: ./build
2426
- name: Publish
2527
uses: peaceiris/actions-gh-pages@v4
2628
with:
2729
github_token: ${{ secrets.GITHUB_TOKEN }}
28-
publish_dir: ./
30+
publish_dir: ./build
2931

3032
publish-release:
3133
needs: [workflow-static]

.github/workflows/workflow-build.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,15 @@ on:
55

66
jobs:
77
build:
8+
strategy:
9+
matrix:
10+
language: ["en", "fr", "es", "ja", "pt"]
811
runs-on: ubuntu-latest
912
steps:
13+
- name: Set directory
14+
env:
15+
LANGUAGE: ${{ matrix.language }}
16+
run: echo "DEST_FOLDER=./build/$LANGUAGE" >> $GITHUB_ENV
1017
- name: Get disk space
1118
run: |
1219
df -h /
@@ -30,18 +37,25 @@ jobs:
3037
with:
3138
node-version: '22.x'
3239
- name: Build
40+
env:
41+
LANGUAGE_TO_BUILD: ${{ matrix.language }}
3342
run: |
3443
if [ -e package-lock.json ]; then
3544
npm ci
3645
else
3746
npm i
3847
fi
39-
npm run build
48+
if [ "$LANGUAGE_TO_BUILD" = 'en' ]; then
49+
npm run build -- --locale $LANGUAGE_TO_BUILD
50+
else
51+
npm run build -- --locale $LANGUAGE_TO_BUILD --out-dir ./build/$LANGUAGE_TO_BUILD
52+
fi
4053
- name: Google verification
54+
if: matrix.language == 'en'
4155
run: |
4256
cd build
4357
echo "google-site-verification: google1a6263055b2bea44.html" >> google1a6263055b2bea44.html
4458
- uses: actions/upload-artifact@v4
4559
with:
4660
path: ./build
47-
name: build
61+
name: build-locale-${{ matrix.language }}

.github/workflows/workflow-syntax-check.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,16 @@ jobs:
2727
CLICOLOR_FORCE: 1
2828
COLORTERM: truecolor
2929
run: |
30-
syntax_checker --paths "docs/**/*.md"
30+
syntax_checker --paths "docs/**/*.md"
31+
- name: Clone syntax-checker
32+
run: git clone https://github.com/doc4d/syntax-checker.git
33+
34+
- name: Install dependencies
35+
run: |
36+
cd syntax-checker
37+
npm install
38+
npm run build
39+
40+
- name: Run syntax-checker
41+
run: |
42+
node syntax-checker/out/check.js ./docs

docs/API/CollectionClass.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,10 +1383,10 @@ It can set the following parameter(s):
13831383
var $col ; $result : Collection
13841384
$col:=New collection(1; 2; 3; 4)
13851385
1386-
$result:=$col.map(Formula(New collection($1.value*2))
1386+
$result:=$col.map(Formula(New collection($1.value*2)))
13871387
// [[2],[4],[6],[8]]
13881388
1389-
$result:=$col.flatMap(Formula(New collection($1.value*2))
1389+
$result:=$col.flatMap(Formula(New collection($1.value*2)))
13901390
// [2,4,6,8]
13911391
```
13921392

docs/API/FileHandleClass.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ $s:=$fh.readText()
318318
<!--REF #FileHandleClass.readBlob().Params -->
319319
|Parameter|Type||Description|
320320
|---|---|---|---|
321-
|*bytes*|Real|->|Number of bytes to be read|
321+
|bytes|Real|->|Number of bytes to be read|
322322
|Result|[4D.Blob](BlobClass)|<-|Bytes read from the file|
323323
<!-- END REF -->
324324

@@ -400,7 +400,7 @@ This function assumes that the [`.offset`](#offset) property is a number of char
400400
<!--REF #FileHandleClass.readText().Params -->
401401
|Parameter|Type||Description|
402402
|---|---|---|---|
403-
|*stopChar*|Text|->|Character(s) at which to stop reading|
403+
|stopChar|Text|->|Character(s) at which to stop reading|
404404
|Result|Text|<-|Text from the file|
405405
<!-- END REF -->
406406

@@ -479,7 +479,7 @@ If the *size* value is less than the current document size, the document content
479479
<!--REF #FileHandleClass.writeBlob().Params -->
480480
|Parameter|Type||Description|
481481
|---|---|---|---|
482-
|*blob*|[4D.Blob](BlobClass)|->|Blob to write in the file|
482+
|blob|[4D.Blob](BlobClass)|->|Blob to write in the file|
483483
<!-- END REF -->
484484

485485

@@ -514,7 +514,7 @@ When this function is executed, the current position ([.offset](#offset)) is upd
514514
<!--REF #FileHandleClass.writeLine().Params -->
515515
|Parameter|Type||Description|
516516
|---|---|---|---|
517-
|*lineOfText*|Text|->|Text to write|
517+
|lineOfText|Text|->|Text to write|
518518
<!-- END REF -->
519519

520520

@@ -547,7 +547,7 @@ When this function is executed, the current position ([.offset](#offset)) is upd
547547
<!--REF #FileHandleClass.writeText().Params -->
548548
|Parameter|Type||Description|
549549
|---|---|---|---|
550-
|*textToWrite*|Text|->|Text to write|
550+
|textToWrite|Text|->|Text to write|
551551
<!-- END REF -->
552552

553553

docs/API/HTTPAgentClass.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ HTTPAgent objects provide the following properties and functions:
2626

2727
||
2828
|---|
29-
|[<!-- INCLUDE #HTTPAgentClass.params.Syntax -->](#options)<br/><!-- INCLUDE #HTTPAgentClass.params.Summary -->|
29+
|[<!-- INCLUDE #HTTPAgentClass.params.Syntax -->](#params)<br/><!-- INCLUDE #HTTPAgentClass.params.Summary -->|
3030
|[<!-- INCLUDE #HTTPAgentClass.requestsCount.Syntax -->](#requestscount)<br/><!-- INCLUDE #HTTPAgentClass.requestsCount.Summary -->|
3131
|[<!-- INCLUDE #HTTPAgentClass.freeSocketsCount.Syntax -->](#freesocketscount)<br/><!-- INCLUDE #HTTPAgentClass.freeSocketsCount.Summary -->|
3232

@@ -113,7 +113,7 @@ When no agent is associated to an HTTPRequest, a global agent with default value
113113

114114
:::
115115

116-
<!-- REF #HTTPAgentClass.params.Desc -->
116+
<!-- REF HTTPAgentClass.params.Desc -->
117117
## .params
118118

119119
<!-- REF #HTTPAgentClass.params.Syntax -->**options** : Object<!-- END REF -->
@@ -124,7 +124,7 @@ The `.params` property object contains <!-- REF #HTTPAgentClass.params.Summary -
124124

125125
<!-- END REF -->
126126

127-
<!-- REF #HTTPAgentClass.requestsCount.Desc -->
127+
<!-- REF HTTPAgentClass.requestsCount.Desc -->
128128
## .requestsCount
129129

130130
<!-- REF #HTTPAgentClass.requestsCount.Syntax -->**requestsCount** : Integer<!-- END REF -->
@@ -135,7 +135,7 @@ The `.requestsCount` property contains <!-- REF #HTTPAgentClass.requestsCount.Su
135135

136136
<!-- END REF -->
137137

138-
<!-- REF #HTTPAgentClass.freeSocketsCount.Desc -->
138+
<!-- REF HTTPAgentClass.freeSocketsCount.Desc -->
139139

140140
## .freeSocketsCount
141141

docs/API/HTTPRequestClass.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ HTTPRequest objects provide the following properties and functions:
7373
|[<!-- INCLUDE #HTTPRequestClass.url.Syntax -->](#url)<br/><!-- INCLUDE #HTTPRequestClass.url.Summary -->|
7474
|[<!-- INCLUDE #HTTPRequestClass.wait().Syntax -->](#wait)<br/><!-- INCLUDE #HTTPRequestClass.wait().Summary -->|
7575

76-
<!-- REF #4D.HTTPRequest.new().Desc -->
76+
<!-- REF 4D.HTTPRequest.new().Desc -->
7777
## 4D.HTTPRequest.new()
7878

7979

@@ -203,7 +203,7 @@ An authentication object handles the `options.serverAuthentication` or `options.
203203
<!-- END REF -->
204204

205205

206-
<!-- REF #HTTPRequestClass.agent.Desc -->
206+
<!-- REF HTTPRequestClass.agent.Desc -->
207207
## .agent
208208

209209
<!-- REF #HTTPRequestClass.agent.Syntax -->**agent** : 4D.HTTPAgent<!-- END REF -->
@@ -214,7 +214,7 @@ The `.agent` property contains <!-- REF #HTTPRequestClass.agent.Summary -->the `
214214

215215
<!-- END REF -->
216216

217-
<!-- REF #HTTPRequestClass.dataType.Desc -->
217+
<!-- REF HTTPRequestClass.dataType.Desc -->
218218
## .dataType
219219

220220
<!-- REF #HTTPRequestClass.dataType.Syntax -->**dataType** : Text<!-- END REF -->
@@ -225,7 +225,7 @@ The `.dataType` property contains <!-- REF #HTTPRequestClass.dataType.Summary --
225225

226226
<!-- END REF -->
227227

228-
<!-- REF #HTTPRequestClass.encoding.Desc -->
228+
<!-- REF HTTPRequestClass.encoding.Desc -->
229229
## .encoding
230230

231231
<!-- REF #HTTPRequestClass.encoding.Syntax -->**encoding** : Text<!-- END REF -->
@@ -236,7 +236,7 @@ The `.encoding` property contains <!-- REF #HTTPRequestClass.encoding.Summary --
236236

237237
<!-- END REF -->
238238

239-
<!-- REF #HTTPRequestClass.errors.Desc -->
239+
<!-- REF HTTPRequestClass.errors.Desc -->
240240
## .errors
241241

242242
<!-- REF #HTTPRequestClass.errors.Syntax -->**errors** : Collection<!-- END REF -->
@@ -256,7 +256,7 @@ Here is the contents of the `.errors` property:
256256

257257
<!-- END REF -->
258258

259-
<!-- REF #HTTPRequestClass.headers.Desc -->
259+
<!-- REF HTTPRequestClass.headers.Desc -->
260260
## .headers
261261

262262
<!-- REF #HTTPRequestClass.headers.Syntax -->**headers** : Object<!-- END REF -->
@@ -267,7 +267,7 @@ The `.headers` property contains <!-- REF #HTTPRequestClass.headers.Summary -->t
267267

268268
<!-- END REF -->
269269

270-
<!-- REF #HTTPRequestClass.method.Desc -->
270+
<!-- REF HTTPRequestClass.method.Desc -->
271271
## .method
272272

273273
<!-- REF #HTTPRequestClass.method.Syntax -->**method** : Text<!-- END REF -->
@@ -278,7 +278,7 @@ The `.method` property contains <!-- REF #HTTPRequestClass.method.Summary -->the
278278

279279
<!-- END REF -->
280280

281-
<!-- REF #HTTPRequestClass.protocol.Desc -->
281+
<!-- REF HTTPRequestClass.protocol.Desc -->
282282
## .protocol
283283

284284
<!-- REF #HTTPRequestClass.protocol.Syntax -->**protocol** : Text<!-- END REF -->
@@ -291,7 +291,7 @@ The `.protocol` property contains <!-- REF #HTTPRequestClass.protocol.Summary --
291291

292292
<!-- END REF -->
293293

294-
<!-- REF #HTTPRequestClass.response.Desc -->
294+
<!-- REF HTTPRequestClass.response.Desc -->
295295
## .response
296296

297297
<details><summary>History</summary>
@@ -320,7 +320,7 @@ A `response` object is a non-sharable object. It provides the following properti
320320

321321
<!-- END REF -->
322322

323-
<!-- REF #HTTPRequestClass.returnResponseBody.Desc -->
323+
<!-- REF HTTPRequestClass.returnResponseBody.Desc -->
324324
## .returnResponseBody
325325

326326
<!-- REF #HTTPRequestClass.returnResponseBody.Syntax -->**returnResponseBody** : Boolean<!-- END REF -->
@@ -331,7 +331,7 @@ The `.returnResponseBody` property contains <!-- REF #HTTPRequestClass.returnRes
331331

332332
<!-- END REF -->
333333

334-
<!-- REF #HTTPRequestClass.terminate().Desc -->
334+
<!-- REF HTTPRequestClass.terminate().Desc -->
335335
## .terminate()
336336

337337
<!-- REF #HTTPRequestClass.terminate().Syntax -->**.terminate()**<!-- END REF -->
@@ -351,7 +351,7 @@ The `.terminate()` function <!-- REF #HTTPRequestClass.terminate().Summary -->ab
351351

352352
<!-- END REF -->
353353

354-
<!-- REF #HTTPRequestClass.terminated.Desc -->
354+
<!-- REF HTTPRequestClass.terminated.Desc -->
355355
## .terminated
356356

357357
<!-- REF #HTTPRequestClass.terminated.Syntax -->**terminated** : Boolean<!-- END REF -->
@@ -362,7 +362,7 @@ The `.terminated` property contains <!-- REF #HTTPRequestClass.terminated.Summar
362362

363363
<!-- END REF -->
364364

365-
<!-- REF #HTTPRequestClass.timeout.Desc -->
365+
<!-- REF HTTPRequestClass.timeout.Desc -->
366366
## .timeout
367367

368368
<!-- REF #HTTPRequestClass.timeout.Syntax -->**timeout** : Real<!-- END REF -->
@@ -373,7 +373,7 @@ The `.timeout` property contains <!-- REF #HTTPRequestClass.timeout.Summary -->t
373373

374374
<!-- END REF -->
375375

376-
<!-- REF #HTTPRequestClass.url.Desc -->
376+
<!-- REF HTTPRequestClass.url.Desc -->
377377
## .url
378378

379379
<!-- REF #HTTPRequestClass.url.Syntax -->**url** : Text<!-- END REF -->
@@ -384,7 +384,7 @@ The `.url` property contains <!-- REF #HTTPRequestClass.url.Summary -->the URL o
384384

385385
<!-- END REF -->
386386

387-
<!-- REF #HTTPRequestClass.wait().Desc -->
387+
<!-- REF HTTPRequestClass.wait().Desc -->
388388
## .wait()
389389

390390
<!-- REF #HTTPRequestClass.wait().Syntax -->**.wait**( { *timeout* : Real } ) : 4D.HTTPRequest<!-- END REF -->

docs/API/IMAPTransporterClass.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ $status:=$imap.append($msg; "Drafts")
241241

242242
<!-- INCLUDE transporter.checkConnection().Desc -->
243243

244-
<!-- REF #IMAPTransporterClass.checkConnectionDelay.Desc -->
244+
<!-- REF IMAPTransporterClass.checkConnectionDelay.Desc -->
245245

246246
## .checkConnectionDelay
247247

0 commit comments

Comments
 (0)