diff --git a/.vitepress/theme/Layout.vue b/.vitepress/theme/Layout.vue new file mode 100644 index 0000000..71d5e16 --- /dev/null +++ b/.vitepress/theme/Layout.vue @@ -0,0 +1,72 @@ + + + + + diff --git a/.vitepress/theme/components/HomePreview.vue b/.vitepress/theme/components/HomePreview.vue index 16efd6f..1254383 100644 --- a/.vitepress/theme/components/HomePreview.vue +++ b/.vitepress/theme/components/HomePreview.vue @@ -1,89 +1,89 @@ diff --git a/.vitepress/theme/index.ts b/.vitepress/theme/index.ts index 4e87bcb..149b9ed 100644 --- a/.vitepress/theme/index.ts +++ b/.vitepress/theme/index.ts @@ -1,16 +1,15 @@ -import { h } from "vue"; import Theme from "vitepress/theme"; +import type { EnhanceAppContext } from "vitepress"; +import Layout from "./Layout.vue"; + import "./styles/var.css"; import "./styles/custom.css"; -import 'uno.css'; +import "uno.css"; import HomePreview from "./components/HomePreview.vue"; export default { ...Theme, - Layout() { - return h(Theme.Layout, null, { - "home-features-after": () => h(HomePreview), - }); - }, + Layout, + enhanceApp({ app }: EnhanceAppContext) {}, }; diff --git a/README.md b/README.md index b650d34..48ed2de 100644 --- a/README.md +++ b/README.md @@ -17,3 +17,4 @@ pnpm run build ``` sh pnpm run serve ``` + diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..78c196c --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "rootDir": ".", + "module": "esnext", + "moduleResolution": "bundler", + "jsx": "preserve", + "resolveJsonModule": true, + "esModuleInterop": true, + "types": [ + "vite/client", + "vitepress" + ], + }, + "include": [ + ".vitepress/**/*.ts", + ".vitepress/**/*.vue", + "src/**/*.ts", + ], + "exclude": [ + "node_modules", + ".vitepress/dist" + ] +}