Documentation
The Documentation section allows you to publish and browse internal Markdown-based documentation directly inside Knowage, without leaving the application. It is accessible at /docs and shows a sidebar menu on the left and the document content on the right.
How to access it
Navigate to /docs in your Knowage instance. If the section has not been set up yet, you will be redirected to a 404 page.
How to set it up
The documentation system reads its content from the Knowage Resource Server. You need to create a folder named exactly docs at the root level of the resource server, and place your files inside it.
Minimum required structure
docs/
├── config.json ← defines the sidebar menu
└── index.md ← home page shown when opening /docs
You can organise your Markdown files freely in subfolders:
docs/
├── config.json
├── index.md
├── getting-started.md
└── advanced/
├── configuration.md
└── troubleshooting.md
The config.json file
This file controls what appears in the sidebar menu: the title, an optional logo, and the list of pages with their labels and links.
Example
{
"title": "My Documentation",
"logo": true,
"dense": false,
"content": [
{
"label": "Introduction",
"path": "/index.md"
},
{
"label": "Advanced",
"content": [
{
"label": "Configuration",
"path": "/advanced/configuration.md"
},
{
"label": "Troubleshooting",
"path": "/advanced/troubleshooting.md"
}
]
},
{
"label": "Admin only page",
"path": "/admin.md",
"roles": ["ROLE_ADMIN"]
}
]
}
Available fields
Top-level
Field |
Description |
|---|---|
|
Optional. Text displayed at the top of the sidebar. |
|
Optional. Set to |
|
Optional. Boolean. If |
|
Required. The list of menu items (see below). |
Menu item fields
Field |
Description |
|---|---|
|
The text displayed in the sidebar for this item. |
|
The path to the |
|
A list of child items. Nesting is supported at multiple levels. |
|
Optional. A list of Knowage roles. If provided, the item (and all its children) will only be visible to users whose role matches one of the listed values. Other users will not see it at all. |
|
Optional. Boolean. If |
Writing pages
Each page is a standard Markdown (.md) file. The following formatting features are supported:
Headings (
#,##,###)Bold, italic, lists, tables
Inline code and code blocks (with syntax highlighting)
Hyperlinks
Mermaid diagrams — write a fenced code block with the language set to
mermaidand it will be automatically rendered as a diagram:
```mermaid
graph TD
A[Start] --> B[Step 1]
B --> C[End]
```
Copying a page link
Each page has a 🔗 button in the top right corner. Clicking it copies the direct URL of the current page to your clipboard, so you can share it with other users.
Customising the appearance
All colours, fonts and sizes can be changed from Theme Management → documentation section. Changes apply to the entire Documentation section immediately after saving the theme.
Sidebar
Setting |
Description |
|---|---|
Drawer Background Color |
Background colour of the sidebar |
Drawer Text Color |
Default text colour for menu items (levels 2 and below) |
Drawer Active Link Color |
Colour of the active item and hover highlight |
Drawer Font Family |
Font used in the sidebar (levels 2 and below) |
Drawer Font Size |
Font size in the sidebar (levels 2 and below) |
Drawer Level 1 Text Color |
Text colour for top-level menu items only |
Drawer Level 1 Font Family |
Font for top-level menu items only |
Drawer Level 1 Font Size |
Font size for top-level menu items only |
Content area
Setting |
Description |
|---|---|
Content Background |
Background of the page content area (supports any CSS value, including gradients) |
Content Text Color |
Body text colour |
Content Font Family |
Body font |
Content Font Size |
Body font size |
Content Heading Color |
Colour applied to |
Link Color |
Colour of hyperlinks |
Code Background Color |
Background of code blocks |
Code Text Color |
Text colour inside code blocks |
Code Border Radius |
Corner rounding of code blocks |