Contributing to the documentation
Resourcesโ
- Docusaurus: https://docusaurus.io/docs
- JSON schema: https://json-schema.org/understanding-json-schema/reference
The conventions on this page are also written up for AI coding agents in
.github/instructions/documentation/ (content structure, authoring style, JSON schemas, versioning,
release notes, gateway/OpenAPI, site components). Keep the two in sync when you change a convention.
How to write documentationโ
Try to keep following key-items into mind:
- Follow a similar structure (navigation path) as the application itself where it makes sense.
- Don't document something that's changed too often. Outdated documentation is worse than no documentation at all.
- If possible, embed documentation in the application itself:
- Use
@Schema(description = "...")where possible, and expose them to the FE.
- Use
- Don't create "empty" documentation
- Avoid pages that are empty or contain no real information
- Avoid Todo placeholders
How to define a different title in the side barโ
At the top of the markdown file, add the following frontmatter (replace the title as needed):
---
title: "Name in sidebar"
---
How to generate JSON schema's in the APIโ
- Run
./generate-json-schemas.shinkubernetes/local
Textual resources for consistencyโ
Let's use/copy below examples throughout the documentation for consistency. If a better icon is found, please do a search and replace for all the old instances.
- Labels
- Various colors: GREY RED GREEN PURPLE BLUE YELLOW
- Modules: RBA
- Icons:
- Mandatory: โ (yes) or โ (no)
- Titles:
- ๐ฏ Functional documentation
- โ๏ธ Configuration or settings
- ๐ ๏ธ Technical documentation
- ๐ References
- โคด๏ธ Migration guide
- Various:
- โน๏ธ Information
- โ ๏ธ Warning
- ๏ธโ๏ธ Edit
- โ Question
- If more are needed, the Emojipedia is a good resource.
Some other Layout componentsโ
This shows a panel with a color and icon
This shows a panel with a color and icon
This shows a panel with a color and icon
This shows a panel with a color and icon
This shows a panel with a color and icon
Expandable info
Some information text here
And some more text here
{
"list": [
{
"object": {
"field": "jdfuenvcma"
},
"field": "jdfuenvcma"
}
]
}
Mermaid: see Syntaxโ
Examples: