17 lines
465 B
TypeScript
Raw Normal View History

2024-01-26 05:07:42 +08:00
// import { Theme } from "@vuepress/core";
import { Theme } from "vuepress/core";
// import { path } from "@vuepress/utils";
import { path } from "vuepress/utils";
2024-01-21 00:49:42 +08:00
import { defaultTheme } from "vuepress";
2021-04-06 23:47:32 +08:00
2021-04-07 22:20:50 +08:00
export const docsPlugin: Theme = (options, app) => {
2024-01-21 00:49:42 +08:00
return defaultTheme({
2021-04-06 23:47:32 +08:00
name: "xray-docs-theme",
extends: "@vuepress/theme-default",
clientAppEnhanceFiles: path.resolve(__dirname, "clientAppEnhance.ts"),
2024-01-21 00:49:42 +08:00
});
2021-04-06 23:47:32 +08:00
};
export default docsPlugin;