Skip to content

pantoken-root / tools/demo/src / DemoMarkdownItOptions

Interfáhta: DemoMarkdownItOptions ​

Válgáid ráhkadit demoMarkdownIt: resolveDemo bealdodat ja ođđa eatná live‑demon seamma.

Extendera ​

Properties ​

base? ​

optional base?: string

Sajta álmmuheapmái jihkko, nugo /pantoken/ (ovttastit /).

Eanetge definerejuvvon ​

ResolveOptions.base


runnerPath? ​

optional runnerPath?: string

Runner‑sivva jihkko, relativt base (ovttastit play/index.html).

Eanetge definerejuvvon ​

ResolveOptions.runnerPath


demosPath? ​

optional demosPath?: string

Ossodat‑hostehtta demo‑sourca katalooga jihkko, relativt base (ovttastit demos/).

Eanetge definerejuvvon ​

ResolveOptions.demosPath


cssUrls? ​

optional cssUrls?: readonly string[]

Stylesheet‑URL:s mii runner injektee (runnerin chrome ja bures rendereraan juo): komponentta sheets, multi‑theme token‑sheet ja plugin/surface sheets. Runner maidteemaid maiddejuvvo vaihkat data-pantoken-theme attributta ovttas, nuin okta token‑sheet leat buohka tema.

Eanetge definerejuvvon ​

ResolveOptions.cssUrls


labels? ​

optional labels?: RunnerLabels

Lokálašuvvon RunnerLabels runnera näkku-tabbái, ja geavahit runner URL:is.

Eanetge definerejuvvon ​

ResolveOptions.labels


liveExample? ​

optional liveExample?: LiveExampleOptions

When set, appends a live preview after each html fence on matching pages — the same markup, rendered live, beneath its source. Overlay examples (<dialog>, [popover]) are skipped: they're hidden until opened, so a ## Demo iframe drives their preview instead.


localePrefix? ​

optional localePrefix?: (relativePath) => string

Route a demo:self:<name> fence to a locale-specific self-hosted demo directory, from the current page's markdown-it env.relativePath (e.g. "hu/" for pages under hu/, "" for the root locale). Prepended to demosPath so the localized clone of a demo (translated prose, same markup) loads instead of the English source. Omit for a single-locale site.

Parametera ​

relativePath ​

string

Gullii / Gávdnat ​

string


localeLabels? ​

optional localeLabels?: (relativePath) => RunnerLabels | undefined

Resolve the runner's view-tab labels for the current page, from its markdown-it env.relativePath — the same locale lookup as DemoMarkdownItOptions.localePrefix. Omit for a single-locale site (the runner then shows its English defaults)).

Parametera ​

relativePath ​

string

Gullii / Gávdnat ​

RunnerLabels | undefined