Skip to content

pantoken / tools/demo/src / DemoMarkdownItOptions

इंटरफेस: DemoMarkdownItOptions

Options for demoMarkdownIt: resolveDemo फ़ील्ड्स और वैकल्पिक लाइव-उदाहरण जोड़ना।

विस्तार करता है

प्रॉपर्टीज

base?

optional base?: string

साइट का बेस पाथ, उदाहरण के लिए /pantoken/ (डिफ़ॉल्ट /)।

अनुवांशित से

ResolveOptions.base


runnerPath?

optional runnerPath?: string

रनर पेज पाथ, base के सापेक्ष (डिफ़ॉल्ट play/index.html)।

अनुवांशित से

ResolveOptions.runnerPath


demosPath?

optional demosPath?: string

स्व-होस्टेड demo-source निर्देशिका, base के सापेक्ष (डिफ़ॉल्ट demos/)।

अनुवांशित से

ResolveOptions.demosPath


cssUrls?

optional cssUrls?: readonly string[]

रनर द्वारा इंजेक्ट किए गए स्टाइलशीट URL (इसके क्रोम और प्रत्येक रेंडर किए गए परिणाम में): कम्पोनेंट शीट्स, मल्टी-थीम टोकन शीट, और प्लगइन/सर्फेस शीट्स। रनर थीम data-pantoken-theme एट्रिब्यूट को टॉगल करके लागू करता है, इसलिए एक टोकन शीट हर थीम को कवर करती है।

अनुवांशित से

ResolveOptions.cssUrls


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.

पैरामीटर

relativePath

string

वापसी

string