This document describes the YAML front-matter format used by the docs-automation tool to generate documentation sections.
The saltbox_automation block is added to the YAML front-matter of markdown documentation files. It controls which sections are auto-generated and provides metadata for those sections.
---
saltbox_automation:
disabled: false # Disable all automation for this file
sections:
inventory: true # Generate inventory section
overview: true # Generate overview section
inventory:
show_sections: [] # Only show these variable sections
hide_sections: [] # Hide these variable sections
example_overrides: {} # Override example values
app_links: [] # Links for the overview table
project_description: null # Project metadata
---| Field | Type | Default | Description |
|---|---|---|---|
disabled |
bool | false |
When true, disables all automation for this file |
sections |
object | - | Controls which sections to generate |
inventory |
object | - | Configures inventory section generation |
app_links |
array | [] |
Links displayed in the overview table |
project_description |
object | null |
Project metadata for overview |
| Field | Type | Default | Description |
|---|---|---|---|
inventory |
bool | true |
Generate the inventory/variables documentation section |
overview |
bool | true |
Generate the overview section |
| Field | Type | Default | Description |
|---|---|---|---|
show_sections |
list | [] |
If non-empty, only show these variable sections |
hide_sections |
list | [] |
Hide these variable sections from output |
example_overrides |
map | {} |
Override example values for specific variables |
Each app link has the following structure:
| Field | Type | Required | Description |
|---|---|---|---|
name |
string | yes | Display name for the link |
url |
string | yes | URL target |
type |
string | no | Link type for icon mapping (see below) |
The type field maps to icons defined in the docs repo template (templates/overview.md.tmpl):
| Field | Type | Required | Description |
|---|---|---|---|
name |
string | yes | Project display name |
summary |
string | yes | Brief project description |
link |
string | no | Primary project URL |
categories |
list | no | Category tags for the project |
---
saltbox_automation:
sections:
inventory: false
------
saltbox_automation:
disabled: true
---Only show specific sections:
---
saltbox_automation:
inventory:
show_sections:
- General
- Docker
---Hide specific sections:
---
saltbox_automation:
inventory:
hide_sections:
- Internal
- Paths
------
saltbox_automation:
inventory:
example_overrides:
sonarr_web_port: "8989"
sonarr_api_key: "your-api-key-here"
------
saltbox_automation:
project_description:
name: Sonarr
summary: A smart PVR for TV shows
link: https://sonarr.tv
categories:
- Media Management
- PVR
app_links:
- name: Home
url: https://sonarr.tv
type: home
- name: Manual
url: https://wiki.sonarr.tv
type: manual
- name: Community
url: https://discord.sonarr.tv
type: discord
---For the automation tool to inject content, the markdown file must contain anchor comments marking where each section should be placed.
<!-- BEGIN SALTBOX MANAGED OVERVIEW SECTION -->
<!-- END SALTBOX MANAGED OVERVIEW SECTION --><!-- BEGIN SALTBOX MANAGED VARIABLES SECTION -->
<!-- END SALTBOX MANAGED VARIABLES SECTION -->The tool will replace everything between the BEGIN and END markers with the generated content.
- If
disabled: true, no sections are generated - Individual section flags (
sections.inventory,sections.overview) control each section - Sections default to
true(enabled) if not specified
The show_sections and hide_sections lists work as follows:
hide_sectionsis checked first - if a section is in this list, it is hidden- If
show_sectionsis non-empty, only sections in that list are shown hide_sectionstakes precedence overshow_sections- Section names are matched case-insensitively