UNPKG

@alauda/doom

Version:

Doctor Doom making docs.

14 lines (13 loc) 894 B
import type { NavItemWithLink } from '@rspress/core'; import type { UnversionedVersion } from './types.ts'; export declare const removeBothEndsSlashes: (str?: string) => string; export declare const getPdfName: (lang: string, userBase?: string, title?: string) => string; export declare const isExplicitlyUnversioned: (version?: string) => version is UnversionedVersion; export declare const isUnversioned: (version?: string) => version is undefined | "" | UnversionedVersion; export declare const getUnversionedVersion: (version?: string) => string | undefined; /** * hello world {#custom-id} -> { text: 'hello world', id: 'custom-id' } */ export declare const extractTextAndId: (title: string) => string[]; export declare const withoutBase: (path: string, base: string) => string; export declare const matchNavbar: (item: NavItemWithLink, currentPathname: string, base: string) => boolean;