docs_helpers.svelte.ts view source
string 9 declarations
docs_helpers.svelte.ts view source
string docs_helpers.svelte.ts view source
{ get: (error_message?: string | undefined) => DocsLinks; get_maybe: () => DocsLinks | undefined; set: (value: DocsLinks) => DocsLinks; } docs_helpers.svelte.ts view source
"/docs" | "/" | "/about" | "/docs/Alert" | "/docs/Breadcrumb" | "/docs/Breadcrumb/a" | "/docs/Breadcrumb/a/b" | "/docs/Breadcrumb/a/b/c" | "/docs/Breadcrumb/a/b/c/d" | "/docs/Card" | ... 94 more ... | `/${string}/help/` docs_helpers.svelte.ts view source
"/docs" docs_helpers.svelte.ts view source
(str: string): string Convert a string to a URL-safe fragment identifier, preserving case for API declarations. Only transforms spaces and special characters, keeping valid identifier characters intact. Used for hash anchors in documentation.
str- The string to convert to a fragment
stringstring A URL-safe fragment identifier
docs_helpers.svelte.ts view source
DocsLinkInfo idstringtextstringfragmentstringtagDocsLinkTag | undefineddepthnumberordernumberparent_idstring | undefineddocs_helpers.svelte.ts view source
root_pathtype string
linkstype SvelteMap<string, DocsLinkInfo>
docs_linksfragments_onscreentype SvelteSet<string>
constructortype new (root_path?: string): DocsLinks
root_pathstringDOCS_PATH_DEFAULTaddtype (fragment: string, text: string, pathname: string, tag?: DocsLinkTag | undefined, depth?: number, parent_id?: string | undefined, explicit_id?: string | undefined): string
fragmentstringtextstringpathnamestringtag?DocsLinkTag | undefineddepthnumber1parent_id?string | undefinedexplicit_id?string | undefinedstringremovetype (id: string): void
idstringvoidgenerate_section_idGenerate a unique section ID for the current page render. This counter is instance-scoped, ensuring SSR/client consistency.
type (): string
stringdocs_helpers.svelte.ts view source
DocsLinkTag docs_helpers.svelte.ts view source
(path_slug: string, pathname: string, root_path?: string): { path: string; path_is_selected: boolean; path_segment: string | undefined; } path_slugstringpathnamestringroot_pathstringDOCS_PATH_DEFAULT{ path: string; path_is_selected: boolean; path_segment: string | undefined; }