Install the Mintlify CLI to preview your documentation changes locally. To install, use the following command:
npm i -g mint
Run the following command at the root of the repository:
cd docs
mint dev
View your local preview at http://localhost:3000.
The main branch is automatically deployed to the production documentation site.
To update code snippets in the documentation, run:
node scripts/loadScripts.jsTo update the Restate configuration JSON schema, add it as docs/schemas/restate-server-configuration-schema.json and run, from the repository root:
node scripts/generate-restate-config-viewer.jsFor a complete generated-reference refresh, use the workflow below, which also regenerates the configuration schema from the runtime.
Use the Pre-release updates workflow to refresh runtime references, update SDK versions and examples, or prepare documentation for an upcoming release.
When you supply restateVersion, the workflow checks out the corresponding runtime tag and regenerates the Admin OpenAPI document, configuration schema and reference, default configuration, SQL introspection reference, and error reference. It also validates the Admin OpenAPI document. SDK version inputs update the corresponding version references and example dependencies. The workflow opens or updates a PR with the generated changes.
- Open the workflow, select Run workflow, and choose the documentation branch to update.
- Provide the version inputs you want to update, leaving the others empty. For runtime references, set
restateVersionwithout the leadingv; the corresponding tag must already exist inrestatedev/restate. SDK-only updates can leaverestateVersionempty. - Review the workflow results and generated PR before merging.
The workflow uses .tools/generate.sh. The individual generators are Admin OpenAPI and SQL introspection; for rendering a configuration schema you already have, follow Restate configuration schema above.
- Add the mdx to
docs/guides. Make sure it has a title, description, and a single tag (eitherrecipe,development,deployment, orintegration).- Example:
--- title: "Guide Title" description: "Short description of the guide." tags: ["recipe"] ---
- Example:
- Add the thumbnail image to
docs/img/guides/{guide-name}/{guide-name}.png - Add the guide to the sidebar in
docs/docs.json
No need to add the guide to the overview. This is done automatically when running:
node loadScripts.jsFor TS:
cd snippets/ts
npm run format
For Java:
cd snippets/java
./gradlew spotlessApply
For Kotlin:
cd snippets/kotlin
./gradlew spotlessApply
For Go:
cd snippets/go
go fmt ./...
For Python:
cd snippets/python
python3 -m black .