Skip to content

Document all component attributes and examples from their source files - #1705

Merged
lovasoa merged 9 commits into
mainfrom
docs/native-component-examples
Dec 5, 2026
Merged

lovasoa merged 9 commits into
mainfrom
docs/native-component-examples

Conversation

@lovasoa

@lovasoa lovasoa commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

All 44 component reference pages keep their URLs and numbered example anchors. Readers can copy the SQL behind a preview. Each runnable example also has a direct URL matching its filename, such as reference/components/alert/04-dismissible-alert.sql. Examples that need application data or multiple files appear as Markdown walkthroughs.

A built-in template’s first Handlebars comment supplies its overview, catalog summary and parameters. Components implemented in Rust use the same Markdown in reference/components/<component>/README.md. The first paragraph is the summary. Parameters are optional by default.

## Row-level parameters

- **contents** (TEXT, required): A block of source code.
- **language** (TEXT): Language used for syntax highlighting.

The site builder uses SQLPage’s Rust Handlebars and Markdown parsers. It checks documented parameters against template reads and writes the catalog and search index to a SQLite database using bound values. Local previews and deployment serve the prepared database. Demo login sessions survive server restarts and reset on rebuild.

The carousel now honors its documented top-level delay for automatic slide changes.

@lovasoa lovasoa changed the title Document component parameters in templates and run native SQL examples Document all component attributes and examples from their source files Dec 4, 2026
@lovasoa
lovasoa enabled auto-merge December 5, 2026 15:28
@lovasoa
lovasoa added this pull request to the merge queue Dec 5, 2026
Merged via the queue into main with commit 739dcae Dec 5, 2026
61 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant