Skip to content

Build text and title references and live examples from authored rows - #1663

Open
lovasoa wants to merge 1 commit into
docs-stack/15-runtime-functionsfrom
docs-stack/16-component-content
Open

lovasoa wants to merge 1 commit into
docs-stack/15-runtime-functionsfrom
docs-stack/16-component-content

Conversation

@lovasoa

@lovasoa lovasoa commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

Decision: define one source for each component reference and live example. text and title are the first users. The YAML rows drive both the preview and the SQL a reader copies; the Markdown body supplies the caption.

Tradeoff: The component loader, shared parameter definitions, and ordered JSON serializer are new code to maintain. Converting a YAML map to a plain JS object can reorder numeric aliases, and converting a large integer to a JS number can corrupt a copied value. Ordinary Markdown preview only shows the caption. At this point public example numbers still come from insertion order.

Review: 01-levels.md, components.mjs, components.test.mjs. Compare the previous SQL.

The current-site fixes are reviewed separately: #1693.

@lovasoa
lovasoa added this pull request to stack #1684 November 28, 2026 22:42
@lovasoa
lovasoa force-pushed the docs-stack/16-component-content branch from d6251cb to 3bcde10 Compare November 28, 2026 23:18
@lovasoa
lovasoa force-pushed the docs-stack/16-component-content branch from 3bcde10 to 66bc41c Compare November 28, 2026 23:31
@lovasoa lovasoa changed the title Keep text and title references and previews together Build text and title references and live examples from authored rows Nov 28, 2026
@lovasoa
lovasoa removed this pull request from stack #1684 November 28, 2026 23:52
@lovasoa
lovasoa force-pushed the docs-stack/16-component-content branch from 66bc41c to 50dc529 Compare November 28, 2026 23:52
@lovasoa
lovasoa added this pull request to stack #1695 November 28, 2026 23:52
@lovasoa
lovasoa force-pushed the docs-stack/16-component-content branch from 50dc529 to 6461266 Compare November 29, 2026 00:47
@lovasoa
lovasoa force-pushed the docs-stack/16-component-content branch from 6461266 to ffce589 Compare November 29, 2026 09:59
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