mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-16 16:54:04 +02:00
Migrate to markdown-code-runner's built-in include_section() (#1417)
This commit is contained in:
parent
74a795d907
commit
f9ccc946ee
11 changed files with 24 additions and 78 deletions
|
|
@ -19,8 +19,7 @@ Adaptive Lighting supports three brightness modes:
|
|||
## Detailed Explanation
|
||||
|
||||
<!-- CODE:START -->
|
||||
<!-- from adaptive_lighting.docs_gen import readme_section -->
|
||||
<!-- print(readme_section("brightness-modes")) -->
|
||||
<!-- print(include_section("../../README.md", "brightness-modes", strip_heading=True)) -->
|
||||
<!-- CODE:END -->
|
||||
<!-- OUTPUT:START -->
|
||||
<!-- ⚠️ This content is auto-generated by `markdown-code-runner`. -->
|
||||
|
|
@ -90,8 +89,7 @@ adaptive_lighting:
|
|||
These graphs show how brightness changes throughout the day based on calculated values:
|
||||
|
||||
<!-- CODE:START -->
|
||||
<!-- from adaptive_lighting.docs_gen import readme_section -->
|
||||
<!-- print(readme_section("graphs")) -->
|
||||
<!-- print(include_section("../../README.md", "graphs", strip_heading=True)) -->
|
||||
<!-- CODE:END -->
|
||||
<!-- OUTPUT:START -->
|
||||
<!-- ⚠️ This content is auto-generated by `markdown-code-runner`. -->
|
||||
|
|
|
|||
|
|
@ -9,8 +9,7 @@ Adaptive Lighting is designed to work seamlessly with manual adjustments, detect
|
|||
## How It Works
|
||||
|
||||
<!-- CODE:START -->
|
||||
<!-- from adaptive_lighting.docs_gen import readme_section -->
|
||||
<!-- print(readme_section("manual-control")) -->
|
||||
<!-- print(include_section("../../README.md", "manual-control", strip_heading=True)) -->
|
||||
<!-- CODE:END -->
|
||||
<!-- OUTPUT:START -->
|
||||
<!-- ⚠️ This content is auto-generated by `markdown-code-runner`. -->
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ icon: lucide/bot
|
|||
Real-world automation examples showing how to integrate Adaptive Lighting with your Home Assistant setup.
|
||||
|
||||
<!-- CODE:START -->
|
||||
<!-- from adaptive_lighting.docs_gen import readme_section -->
|
||||
<!-- print(readme_section("automation-examples")) -->
|
||||
<!-- from adaptive_lighting.docs_gen import _transform_readme_links -->
|
||||
<!-- print(_transform_readme_links(include_section("../README.md", "automation-examples", strip_heading=True))) -->
|
||||
<!-- CODE:END -->
|
||||
<!-- OUTPUT:START -->
|
||||
<!-- ⚠️ This content is auto-generated by `markdown-code-runner`. -->
|
||||
|
|
|
|||
|
|
@ -85,8 +85,8 @@ All configuration options are listed below with their default values. These opti
|
|||
## Full Configuration Example
|
||||
|
||||
<!-- CODE:START -->
|
||||
<!-- from adaptive_lighting.docs_gen import readme_section -->
|
||||
<!-- print(readme_section("config-example-full", strip_heading=False)) -->
|
||||
<!-- from adaptive_lighting.docs_gen import _transform_readme_links -->
|
||||
<!-- print(_transform_readme_links(include_section("../README.md", "config-example-full"))) -->
|
||||
<!-- CODE:END -->
|
||||
<!-- OUTPUT:START -->
|
||||
<!-- ⚠️ This content is auto-generated by `markdown-code-runner`. -->
|
||||
|
|
|
|||
|
|
@ -26,8 +26,8 @@ By automatically adapting the settings of your lights throughout the day, Adapti
|
|||
## Features
|
||||
|
||||
<!-- CODE:START -->
|
||||
<!-- from adaptive_lighting.docs_gen import readme_section -->
|
||||
<!-- print(readme_section("features")) -->
|
||||
<!-- from adaptive_lighting.docs_gen import _transform_readme_links -->
|
||||
<!-- print(_transform_readme_links(include_section("../README.md", "features", strip_heading=True))) -->
|
||||
<!-- CODE:END -->
|
||||
<!-- OUTPUT:START -->
|
||||
<!-- ⚠️ This content is auto-generated by `markdown-code-runner`. -->
|
||||
|
|
|
|||
|
|
@ -9,8 +9,8 @@ Resources, tutorials, and related projects for Adaptive Lighting.
|
|||
## Tutorials & Articles
|
||||
|
||||
<!-- CODE:START -->
|
||||
<!-- from adaptive_lighting.docs_gen import readme_section -->
|
||||
<!-- print(readme_section("see-also")) -->
|
||||
<!-- from adaptive_lighting.docs_gen import _transform_readme_links -->
|
||||
<!-- print(_transform_readme_links(include_section("../README.md", "see-also", strip_heading=True))) -->
|
||||
<!-- CODE:END -->
|
||||
<!-- OUTPUT:START -->
|
||||
<!-- ⚠️ This content is auto-generated by `markdown-code-runner`. -->
|
||||
|
|
|
|||
|
|
@ -112,13 +112,11 @@ data:
|
|||
## adaptive_lighting.change_switch_settings
|
||||
|
||||
<!-- CODE:START -->
|
||||
<!-- from adaptive_lighting.docs_gen import readme_section -->
|
||||
<!-- print(readme_section("change-switch-settings")) -->
|
||||
<!-- from adaptive_lighting.docs_gen import _transform_readme_links -->
|
||||
<!-- print(_transform_readme_links(include_section("../README.md", "change-switch-settings", strip_heading=True))) -->
|
||||
<!-- CODE:END -->
|
||||
<!-- OUTPUT:START -->
|
||||
<!-- ⚠️ This content is auto-generated by `markdown-code-runner`. -->
|
||||
#### `adaptive_lighting.change_switch_settings`
|
||||
|
||||
`adaptive_lighting.change_switch_settings` (new in 1.7.0) Change any of the above configuration options of Adaptive Lighting (such as `sunrise_time` or `prefer_rgb_color`) with a service call directly from your script/automation.
|
||||
|
||||
> [!WARNING]
|
||||
|
|
|
|||
|
|
@ -9,8 +9,8 @@ This guide covers common issues and their solutions when using Adaptive Lighting
|
|||
## Enable Debug Logging
|
||||
|
||||
<!-- CODE:START -->
|
||||
<!-- from adaptive_lighting.docs_gen import readme_section -->
|
||||
<!-- print(readme_section("troubleshooting-intro")) -->
|
||||
<!-- from adaptive_lighting.docs_gen import _transform_readme_links -->
|
||||
<!-- print(_transform_readme_links(include_section("../README.md", "troubleshooting-intro", strip_heading=True))) -->
|
||||
<!-- CODE:END -->
|
||||
<!-- OUTPUT:START -->
|
||||
<!-- ⚠️ This content is auto-generated by `markdown-code-runner`. -->
|
||||
|
|
@ -30,8 +30,8 @@ After the issue occurs, create a new issue report with the log (`/config/home-as
|
|||
## Common Problems & Solutions
|
||||
|
||||
<!-- CODE:START -->
|
||||
<!-- from adaptive_lighting.docs_gen import readme_section -->
|
||||
<!-- print(readme_section("common-problems")) -->
|
||||
<!-- from adaptive_lighting.docs_gen import _transform_readme_links -->
|
||||
<!-- print(_transform_readme_links(include_section("../README.md", "common-problems", strip_heading=True))) -->
|
||||
<!-- CODE:END -->
|
||||
<!-- OUTPUT:START -->
|
||||
<!-- ⚠️ This content is auto-generated by `markdown-code-runner`. -->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue