Skip to content

doc4d/docs

This branch is 260 commits ahead of, 10 commits behind 4d/docs:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f651e68 · Mar 31, 2025
Feb 12, 2025
Mar 28, 2025
Mar 29, 2025
Mar 11, 2025
Nov 5, 2024
Nov 18, 2022
Mar 19, 2025
Mar 27, 2025
Mar 19, 2025
Mar 24, 2025
Mar 12, 2019
Jul 12, 2024
Aug 14, 2019
Mar 17, 2025
Feb 5, 2020
Jan 8, 2025
Jan 20, 2025
Jul 1, 2024
Feb 14, 2025
Mar 11, 2025
Mar 11, 2025
Mar 28, 2025
Jan 15, 2025

Repository files navigation

doc

Commands

Start

Two processes should run at the same time:

  • The preprocess
  • The docusaurus start

The Preprocess

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.

Docusaurus Start

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

  • Build the full doc: npm run build
  • Build english only: npm run build -- --locale en

Syntax

To generate syntax files:

npm run syntax

Markdown conventions

API file names

  • xxxxClass.md -> exposed class function file
  • xxxx.md -> non-exposed class function file (included only)

preprocessing.conf

References class names vs file names

html tags in markdown

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

Prototype conventions

  • 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 }}

tools

Exemple:

node tools/overview_build -> regénérer page des thèmes en anglais

Packages

No packages published

Languages

  • JavaScript 95.7%
  • CSS 4.3%