@easyx.ai/dumi-theme-easyxai
Version:
@easyx.ai/dumi-theme-easyxai 是为 dumi2 打造的一款文档站主题包,提供了更加美观、易用的研发与阅读体验
24 lines (23 loc) • 694 B
TypeScript
import { ISidebarItem } from 'dumi/dist/client/theme-api/types';
import { AnchorItem } from "../..";
import { SiteStore } from '../useSiteStore';
export * from './apiHeader';
export * from './hero';
export * from './siteBasicInfo';
export * from './token';
export declare const activePathSel: (s: SiteStore) => string;
/**
* toc 锚点选择器
* @param s
*/
export declare const tocAnchorItemSel: (s: SiteStore) => AnchorItem[];
/**
* 将 sidebar 信息扁平化
* @param s
*/
export declare const flattenSidebarSel: (s: SiteStore) => ISidebarItem[];
export declare const contentBottomSel: (s: SiteStore) => {
prev: ISidebarItem;
currentIndex: number;
next: ISidebarItem;
};