Built using Docusaurus.
npm run startUpdate the Sequence submodule to the latest version.
git -C ./steps-gen/sequence fetch
git -C ./steps-gen/sequence checkout <VERSION>Build sequence console:
dotnet publish -c Release -o ./.sequence steps-gen/sequence/Sequence/Sequence.csproj
cp ./steps-gen/sequence-appsettings.json ./.sequence/appsettings.json
cp ./steps-gen/connectors.json ./.sequence/connectors.jsonRun the doc generation SCL:
./.sequence/sequence run ./steps-gen/build-docs.sclBuild sequence console first. Then run the Validate-SCL script which
will validate all scl code blocks in .md files in the ./docs directory.
./Validate-SCL.ps1It's also possible to specify a file or directory to validate:
./Validate-SCL.ps1 -Path ./docs/entities.mdTo ignore a code block, add a #ignore right after scl:
```scl #ignore
(prop: 1)
```- Add the connector to the configuration in
steps-gen/connectors.json. This will enable step documentation to be generated for this connector. - Add connector description and settings to
docs/connectors/ - Add any connector examples to
docs/examples - Add connector description and name to
steps-gen/build-docs.scl.
All the documentation that is in the docs and steps folders
is published as the -alpha version. For release version, a
snapshot needs to be created:
-
Remove previous version of sequence console (if exists) and steps
rm -rec -for ./.sequence rm -rec -for ./steps/*
-
Update the
scl-editorref for thebuild:docusaurusjob in.gitlab-ci.yml -
Update the connector versions in
./steps-gen/connectors.json -
Delete any versions older than six months.
-
Create a new version snapshot for docs and steps (same version for both):
npm run docusaurus docs:version v0.18.0 npm run docusaurus docs:version:steps v0.18.0
-
Verify that the new versions work
npm run start
-
After pushing to GitLab, verify that the playground works.
This is done automatically in the CI, but if developing locally:
Clone the scl-editor project
into the same directory as sequence-docs.
Remove-Item -rec -for ./playground -ErrorAction SilentlyContinue
New-Item -ItemType Directory -Path ./playground | Out-Null
dotnet publish --configuration Release --output ./scl-playground ../scl-editor/SCLEditor.React/SCLEditor.React.csproj
Move-Item ./scl-playground/wwwroot/* ./playground
Move-Item ./playground/index.html ./playground/playground-react.html
Remove-Item -rec -for ./scl-playground