From 9bf5d57e610d587782553a983f9e7fa05b60aa39 Mon Sep 17 00:00:00 2001 From: DoubledConG <992196871@qq.com> Date: Wed, 18 Oct 2023 19:40:35 +0800 Subject: [PATCH] config: update the gitignore --- docs/.vitepress/{config.mts => config.mjs} | 1 + docs/.vitepress/theme/Layout.vue | 7 +++++++ docs/.vitepress/theme/index.js | 18 ++++++++++++++++++ docs/.vitepress/theme/index.ts | 16 ---------------- 4 files changed, 26 insertions(+), 16 deletions(-) rename docs/.vitepress/{config.mts => config.mjs} (99%) create mode 100644 docs/.vitepress/theme/Layout.vue create mode 100644 docs/.vitepress/theme/index.js delete mode 100644 docs/.vitepress/theme/index.ts diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mjs similarity index 99% rename from docs/.vitepress/config.mts rename to docs/.vitepress/config.mjs index ddaf268..0ca8720 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mjs @@ -7,6 +7,7 @@ export default defineConfig({ description: "A develop document.", head: [["link", { rel: "icon", href: "/ccdevdocs/favicon.svg" }]], themeConfig: { + lastUpdated: true, search: { provider: "local", }, diff --git a/docs/.vitepress/theme/Layout.vue b/docs/.vitepress/theme/Layout.vue new file mode 100644 index 0000000..5cdca52 --- /dev/null +++ b/docs/.vitepress/theme/Layout.vue @@ -0,0 +1,7 @@ + + \ No newline at end of file diff --git a/docs/.vitepress/theme/index.js b/docs/.vitepress/theme/index.js new file mode 100644 index 0000000..f7abbd5 --- /dev/null +++ b/docs/.vitepress/theme/index.js @@ -0,0 +1,18 @@ +// https://vitepress.dev/guide/custom-theme +import { h } from "vue"; +import Theme from "vitepress/theme"; +import "./style.css"; + +import Layout from "./Layout.vue"; + +export default { + extends: Theme, + Layout: () => { + return h(Theme.Layout, null, { + // https://vitepress.dev/guide/extending-default-theme#layout-slots + }); + }, + enhanceApp({ app, router, siteData }) { + // ... + }, +}; diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts deleted file mode 100644 index bdd506d..0000000 --- a/docs/.vitepress/theme/index.ts +++ /dev/null @@ -1,16 +0,0 @@ -// https://vitepress.dev/guide/custom-theme -import { h } from 'vue' -import Theme from 'vitepress/theme' -import './style.css' - -export default { - extends: Theme, - Layout: () => { - return h(Theme.Layout, null, { - // https://vitepress.dev/guide/extending-default-theme#layout-slots - }) - }, - enhanceApp({ app, router, siteData }) { - // ... - } -}