@hopepaddy/dumi-theme
Version:
dumi-theme-hopepaddy is a documentation site theme package designed for dumi2. It provides a more beautiful and user-friendly development and reading experience based on @lobehub/ui
62 lines (61 loc) • 2.23 kB
TypeScript
import { ISidebarItem } from 'dumi/dist/client/theme-api/types';
import { AnchorItem } from "../../types";
import { SiteStore } from '../useSiteStore';
export declare const siteSelectors: {
activePath: (s: SiteStore) => string;
analytics: (s: SiteStore) => {
clarity?: {
projectId: string;
} | undefined;
googleAnalytics?: {
measurementId: string;
} | undefined;
plausible?: {
domain: string;
scriptBaseUrl: string;
} | undefined;
} | undefined;
contentBottom: (s: SiteStore) => {
currentIndex: number;
next: ISidebarItem;
prev: ISidebarItem;
};
discord: (s: SiteStore) => `https://discord.gg/${string}` | "";
flattenSidebar: (s: SiteStore) => ISidebarItem[];
giscus: (s: SiteStore) => {
category: string;
categoryId: string;
repo: `${string}/${string}`;
repoId: string;
} | undefined;
github: (s: SiteStore) => string;
hostname: (s: SiteStore) => string | undefined;
logo: (s: SiteStore) => string;
metadata: (s: SiteStore) => {
description?: string | undefined;
icons?: {
apple?: string | undefined;
icon?: string | undefined;
shortcut?: string | undefined;
} | undefined;
manifest?: string | undefined;
openGraph?: {
description?: string | undefined;
image?: string | undefined;
siteName?: string | undefined;
title?: string | undefined;
} | undefined;
title?: string | undefined;
twitter?: {
description?: string | undefined;
image?: string | undefined;
site?: string | undefined;
title?: string | undefined;
} | undefined;
} | undefined;
siteDesc: (s: SiteStore) => string | undefined;
siteTitle: (s: SiteStore) => string | undefined;
themeConfig: (s: SiteStore) => import("dumi/dist/client/theme-api/types").IThemeConfig & import("../../types").SiteThemeConfig & Partial<import("../../types").SiteThemeConfig>;
tocAnchorItem: (s: SiteStore) => AnchorItem[];
token: (s: SiteStore) => any;
};