Format and structure patterns for F1 Sensor documentation.
Every page requires YAML frontmatter:
---
id: feature-name
title: Feature Title
---Use kebab-case for id. Title should be user-friendly.
Start with 1-2 sentences explaining what the feature does and why a user would use it.
Use ## for main sections, ### for subsections.
Common section patterns:
- Overview / How it works
- Step-by-step instructions (numbered)
- Configuration options
- Limitations / Notes
For sensors and other entities, use this structure:
## Entity Name
Brief description of what this entity does and when it updates.
**State**
- Description of possible state values
**Example**
\`\`\`text
example_value
\`\`\`
**Attributes**
| Attribute | Type | Description |
| --- | --- | --- |
| attribute_name | string | What this attribute contains |
| other_attribute | number | What this represents |If no attributes: | (none) | | No extra attributes |
Use Docusaurus admonition syntax:
:::info
Information note
:::
:::tip
Helpful tip
:::
::::info Title
Note with custom title
::::Available types: info, tip, warning, danger
Internal links use root-relative paths:
[Link text](/entities/live-data)
[Installation guide](/getting-started/installation)Images go in /static/img/. Use descriptive filenames.
For YAML configuration:
\`\`\`yaml
automation:
trigger:
- platform: state
entity_id: sensor.f1_track_status
\`\`\`For state examples:
\`\`\`text
CLEAR
\`\`\`Use numbered lists with clear action verbs:
### Step 1 - Install the integration
1. Open **HACS** in Home Assistant
2. Search for **F1 Sensor**
3. Click **Download**Bold UI elements: Settings, Add Integration, Download
For optional or advanced content:
<details>
<summary>Advanced configuration</summary>
Content goes here.
</details>- Use present tense
- Address the user directly ("you can", "this lets you")
- Avoid jargon and implementation details
- Explain what things do, not how they work internally
- Keep sentences short and scannable
When documenting limitations:
:::info
This sensor is active only during race and sprint sessions.
:::Or inline: "Updates approximately every minute during an active session."
| Type | Location |
|---|---|
| Getting started | docs/getting-started/ |
| Entity reference | docs/entities/ |
| Examples | docs/example/ |
| Help/FAQ | docs/help/ |
| Standalone pages | docs/ |
New pages must be added to sidebars.js:
{
type: 'category',
label: 'Category Name',
items: ['folder/page-id'],
}Or as standalone:
{
type: 'doc',
label: 'Page Title',
id: 'page-id',
}