hass.tibber_prices/docs/user/sidebars.ts
Julian Pawlowski 4cc150df6f docs(actions): restructure into dedicated Actions category
Split monolithic actions.md into focused sub-pages:
- actions.md: lightweight overview with links
- scheduling-actions.md: renamed from scheduling-services.md
- chart-actions.md: get_chartdata + get_apexcharts_yaml
- data-actions.md: get_price + refresh_user_data

New  Actions sidebar category. Reference keeps only sensor-reference.
Updated cross-references in 6 files.

Impact: Clearer navigation — users find actions by purpose instead of
scrolling a long page. Consistent "actions" terminology (HA standard).
2026-04-11 19:25:17 +00:00

109 lines
2.9 KiB
TypeScript

import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
/**
* Creating a sidebar enables you to:
- create an ordered group of docs
- render a sidebar for each doc of that group
- provide next/previous navigation
The sidebars can be generated from the filesystem, or explicitly defined here.
Create as many sidebars as you want.
*/
const sidebars: SidebarsConfig = {
tutorialSidebar: [
'intro',
{
type: 'category',
label: '🚀 Getting Started',
link: { type: 'doc', id: 'installation' },
items: ['installation', 'configuration'],
collapsible: true,
collapsed: false,
},
{
type: 'category',
label: '📖 Core Concepts',
link: { type: 'doc', id: 'concepts' },
items: ['concepts', 'glossary'],
collapsible: true,
collapsed: false,
},
{
type: 'category',
label: '📊 Sensors',
link: { type: 'doc', id: 'sensors-overview' },
items: [
'sensors-overview',
'sensors-average',
'sensors-ratings-levels',
'sensors-volatility',
'sensors-trends',
'sensors-timing',
'sensors-energy-tax',
],
collapsible: true,
collapsed: false,
},
{
type: 'category',
label: '⏰ Price Periods',
link: { type: 'doc', id: 'period-calculation' },
items: ['period-calculation', 'period-relaxation'],
collapsible: true,
collapsed: false,
},
{
type: 'category',
label: '🎨 Dashboards & Charts',
link: { type: 'doc', id: 'dashboard-examples' },
items: ['dynamic-icons', 'icon-colors', 'dashboard-examples', 'chart-examples'],
collapsible: true,
collapsed: false,
},
{
type: 'category',
label: '🤖 Automations',
link: { type: 'doc', id: 'automation-examples' },
items: ['automation-examples'],
collapsible: true,
collapsed: false,
},
{
type: 'category',
label: '⚡ Actions',
link: { type: 'doc', id: 'actions' },
items: ['actions', 'scheduling-actions', 'chart-actions', 'data-actions'],
collapsible: true,
collapsed: false,
},
{
type: 'category',
label: '📖 Reference',
link: { type: 'doc', id: 'sensor-reference' },
items: ['sensor-reference'],
collapsible: true,
collapsed: false,
},
{
type: 'category',
label: '👥 Community',
link: { type: 'doc', id: 'community-examples' },
items: ['community-examples'],
collapsible: true,
collapsed: false,
},
{
type: 'category',
label: '🔧 Help & Support',
link: { type: 'doc', id: 'faq' },
items: ['faq', 'troubleshooting'],
collapsible: true,
collapsed: false,
},
],
};
export default sidebars;