proper scrolling in docs

This commit is contained in:
2026-02-23 20:51:40 +01:00
parent cd394bcacb
commit 3840b928ba
10 changed files with 554 additions and 34 deletions

View File

@@ -151,41 +151,37 @@ Macros let you insert dynamic content blocks directly inside post/page Markdown
Use macros when you need reusable rich blocks (for example embedded videos, media galleries, archive grids, or computed tag clouds) without writing raw HTML.
### Supported macros
### YouTube macro
- `[[youtube id="VIDEO_ID" title="Optional title"]]`
- Embeds a YouTube video.
- `id` is required.
- `title` is optional (used for accessibility label).
Use `[[youtube id="VIDEO_ID" title="Optional title"]]` when you want to embed a YouTube clip directly in a post or page. This macro is best for video references, walkthroughs, and embedded talks that should stay in the editorial flow instead of linking out to another tab.
- `[[vimeo id="VIDEO_ID" title="Optional title"]]`
- Embeds a Vimeo video.
- `id` is required.
- `title` is optional.
The `id` parameter is required and should contain the YouTube video ID. The `title` parameter is optional, but recommended for accessibility because it becomes the reader-facing label for the embedded frame.
- `[[gallery columns="3" caption="Optional caption"]]`
- Renders a lightbox-enabled gallery using media linked to the current post.
- `columns` is optional (`1` to `6`, default `3`).
- `caption` is optional.
### Vimeo macro
- `[[photo_archive year="2025" month="2"]]`
- Renders a photo archive grid from media dates.
- `year` is optional (when omitted, recent months are shown).
- `month` is optional (used with `year` for a single month view).
- Legacy alias `[[photo_album ...]]` is also supported.
Use `[[vimeo id="VIDEO_ID" title="Optional title"]]` for Vimeo-hosted video content. It behaves similarly to the YouTube macro, but targets Vimeo as the video source.
- `[[tag_cloud orientation="mixed_diagonal" width="900" height="420"]]`
- Builds a word cloud from published tag usage counts.
- Word size scales by usage quantity.
- Word color is theme-aware and uses Pico CSS semantic colors.
- Colors are distributed by quantity quantiles with easing, so dense datasets still show visible variation.
- Visual order remains least-to-most: blue → green → yellow → orange → red.
- Clicking a word opens that tag archive route.
- `orientation` is optional and supports:
- `horizontal` (all words horizontal)
- `mixed_hv` (mix of horizontal and vertical)
- `mixed_diagonal` (mix of horizontal/vertical/diagonal angles)
- `width` and `height` are optional (defaults `900` and `420`).
As with YouTube, `id` is required and `title` is optional. Use `title` whenever possible so screen-reader and assistive-technology users receive useful context.
### Gallery macro
Use `[[gallery columns="3" caption="Optional caption"]]` to render a lightbox-enabled media gallery from assets linked to the current post. This macro is appropriate when several related images belong together and should be browsed as one visual group.
The `columns` parameter controls layout density and accepts values from `1` to `6` (default is `3`). The optional `caption` parameter adds context above or below the gallery depending on theme presentation.
### Photo archive macro
Use `[[photo_archive year="2025" month="2"]]` when you want an archive-style grid based on media dates. This is useful for timeline-oriented projects where readers should navigate image collections by month or year.
Both `year` and `month` are optional. If `year` is omitted, bDS shows recent months. If `year` is provided without `month`, bDS presents the year scope. The legacy alias `[[photo_album ...]]` is still supported for compatibility.
### Tag cloud macro
Use `[[tag_cloud orientation="mixed_diagonal" width="900" height="420"]]` to visualize published tag usage as a weighted cloud. This macro is best for discovery pages, thematic overviews, and archive entry points where content density matters.
Word size scales with usage counts. Colors are theme-aware and distributed by quantity quantiles using eased interpolation so high-volume datasets stay readable. The color progression remains least-to-most (blue → green → yellow → orange → red), and clicking a word opens that tag archive route.
The optional `orientation` parameter supports `horizontal`, `mixed_hv`, and `mixed_diagonal`. The optional `width` and `height` parameters control canvas size and default to `900` and `420`.
### Key takeaways