Built using Docusaurus.
npm run start
Update the Phoenix submodule to the latest version.
git -C ./steps-gen/Phoenix fetch
git -C ./steps-gen/Phoenix checkout <VERSION>
Build Phoenix console:
dotnet publish -c Release -o ./.Phoenix steps-gen/Phoenix/Phoenix/Phoenix.csproj
cp ./steps-gen/Phoenix-appsettings.json ./.Phoenix/appsettings.json
cp ./steps-gen/connectors.json ./.Phoenix/connectors.json
Run the doc generation SCL:
./.Phoenix/Phoenix run ./steps-gen/build-docs.scl
Build Phoenix console first. Then run the Validate-SCL script which
will validate all scl code blocks in .md files in the ./docs directory.
./Validate-SCL.ps1
It’s also possible to specify a file or directory to validate:
./Validate-SCL.ps1 -Path ./docs/entities.md
To ignore a code block, add a ` #ignore` right after scl:
```scl #ignore
(prop: 1)
```
steps-gen/connectors.json.
This will enable step documentation to be generated for this connector.docs/connectors/docs/examplessteps-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 Phoenix console (if exists) and steps
rm -rec -for ./.Phoenix
rm -rec -for ./steps/*
scl-editor ref for the build:docusaurus job in .gitlab-ci.yml./steps-gen/connectors.jsonCreate 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
This is done automatically in the CI, but if developing locally:
Clone the scl-editor project
into the same directory as Phoenix-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