16 lines
408 B
TypeScript
Raw Normal View History

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