Two processes should run at the same time:
- The preprocess
- The docusaurus start
run npm run start_watch
in one terminal.
The files from the folder "docs" will be preprocessed in the folder named "docsPostProcessed". A change to a file will be automatically preprocessed.
The docusaurus.config_start.js
uses docusaurus.config.js
with a few modifications:
- path: "docsPostProcessed/docs"
- versions: only the current version is used
npm run start -- --config ./docusaurus.config_start.js
in a new terminal to start the preview with this new config.
- Build the full doc:
npm run build
- Build english only:
npm run build -- --locale en
To generate syntax files:
npm run syntax
- xxxxClass.md -> exposed class function file
- xxxx.md -> non-exposed class function file (included only)
References class names vs file names
A #
in tag means used for syntax file. Other tags are used for ref/include only
-
for a class function/property :
<!-- REF #ClassNameClass.functionName.Syntax -->
and<!-- REF #ClassNameClass.functionName.Summary -->
ex:<!-- REF #FileHandleClass.getSize().Syntax -->
and<!-- REF #FileHandleClass.getSize().Summary -->
-
for a 4D command
<!-- REF #_command_.name.Syntax -->
and<!-- REF #_command_.name.Summary -->
ex:<!-- REF #_command_.IMAP New transporter.Syntax -->
and<!-- REF #_command_.IMAP New transporter.Summary -->
-
REF = declare a ref, INCLUDE = insert a ref
- variadic parameter syntax :
...paramName : type
-> . Ex: "( name : Text ; ... value : Integer )" - no specific type:
any
- optional :
{ paramName1 : type }{; paramName2 : type }
- optional but only if previous param is passed:
{ paramName1 : type {; paramName2 : type }}