From cb44babbab4403c59fe3d38468d64161cf951069 Mon Sep 17 00:00:00 2001 From: ppst Date: Wed, 7 Jun 2023 14:41:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E4=B8=BB=E9=A2=98cust?= =?UTF-8?q?om-vitepress-theme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vitepress/cache/deps/_metadata.json | 6 ++-- .vitepress/cache/deps/ppst-vitepress-theme.js | 28 +++++++++---------- .../cache/deps/ppst-vitepress-theme.js.map | 2 +- .vitepress/theme/index.ts | 2 +- package.json | 2 +- 5 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.vitepress/cache/deps/_metadata.json b/.vitepress/cache/deps/_metadata.json index af765a1..6429216 100644 --- a/.vitepress/cache/deps/_metadata.json +++ b/.vitepress/cache/deps/_metadata.json @@ -8,9 +8,9 @@ "fileHash": "8fc6d2ae", "needsInterop": false }, - "ppst-vitepress-theme": { - "src": "../../../node_modules/.pnpm/ppst-vitepress-theme@0.0.2_vitepress@1.0.0-alpha.64/node_modules/ppst-vitepress-theme/src/index.ts", - "file": "ppst-vitepress-theme.js", + "custom-vitepress-theme": { + "src": "../../../node_modules/.pnpm/custom-vitepress-theme@0.0.2_vitepress@1.0.0-alpha.64/node_modules/custom-vitepress-theme/src/index.ts", + "file": "custom-vitepress-theme.js", "fileHash": "2f2eb96a", "needsInterop": false } diff --git a/.vitepress/cache/deps/ppst-vitepress-theme.js b/.vitepress/cache/deps/ppst-vitepress-theme.js index 680f387..6e36a26 100644 --- a/.vitepress/cache/deps/ppst-vitepress-theme.js +++ b/.vitepress/cache/deps/ppst-vitepress-theme.js @@ -4,20 +4,20 @@ import { provide } from "./chunk-WICYTZ2N.js"; -// node_modules/.pnpm/ppst-vitepress-theme@0.0.2_vitepress@1.0.0-alpha.64/node_modules/ppst-vitepress-theme/src/vitepress/index.ts +// node_modules/.pnpm/custom-vitepress-theme@0.0.2_vitepress@1.0.0-alpha.64/node_modules/custom-vitepress-theme/src/vitepress/index.ts import "D:/pengpian/git/custom-vitepress-theme-demo/node_modules/.pnpm/normalize.css@8.0.1/node_modules/normalize.css/normalize.css"; -import "D:/pengpian/git/custom-vitepress-theme-demo/node_modules/.pnpm/ppst-vitepress-theme@0.0.2_vitepress@1.0.0-alpha.64/node_modules/ppst-vitepress-theme/src/vitepress/styles/variables.css"; -import "D:/pengpian/git/custom-vitepress-theme-demo/node_modules/.pnpm/ppst-vitepress-theme@0.0.2_vitepress@1.0.0-alpha.64/node_modules/ppst-vitepress-theme/src/vitepress/styles/switch.css"; -import "D:/pengpian/git/custom-vitepress-theme-demo/node_modules/.pnpm/ppst-vitepress-theme@0.0.2_vitepress@1.0.0-alpha.64/node_modules/ppst-vitepress-theme/src/vitepress/styles/custom.css"; -import "D:/pengpian/git/custom-vitepress-theme-demo/node_modules/.pnpm/ppst-vitepress-theme@0.0.2_vitepress@1.0.0-alpha.64/node_modules/ppst-vitepress-theme/src/vitepress/styles/theme.css"; -import Layout from "D:/pengpian/git/custom-vitepress-theme-demo/node_modules/.pnpm/ppst-vitepress-theme@0.0.2_vitepress@1.0.0-alpha.64/node_modules/ppst-vitepress-theme/src/vitepress/components/Layout.vue"; -import Search from "D:/pengpian/git/custom-vitepress-theme-demo/node_modules/.pnpm/ppst-vitepress-theme@0.0.2_vitepress@1.0.0-alpha.64/node_modules/ppst-vitepress-theme/src/vitepress/components/Search.vue"; -import Archives from "D:/pengpian/git/custom-vitepress-theme-demo/node_modules/.pnpm/ppst-vitepress-theme@0.0.2_vitepress@1.0.0-alpha.64/node_modules/ppst-vitepress-theme/src/vitepress/components/Archives.vue"; -import Home from "D:/pengpian/git/custom-vitepress-theme-demo/node_modules/.pnpm/ppst-vitepress-theme@0.0.2_vitepress@1.0.0-alpha.64/node_modules/ppst-vitepress-theme/src/vitepress/components/Home.vue"; -import DefaultPage from "D:/pengpian/git/custom-vitepress-theme-demo/node_modules/.pnpm/ppst-vitepress-theme@0.0.2_vitepress@1.0.0-alpha.64/node_modules/ppst-vitepress-theme/src/vitepress/components/DefaultPage.vue"; -import CategoryPage from "D:/pengpian/git/custom-vitepress-theme-demo/node_modules/.pnpm/ppst-vitepress-theme@0.0.2_vitepress@1.0.0-alpha.64/node_modules/ppst-vitepress-theme/src/vitepress/components/CategoryPage.vue"; +import "D:/pengpian/git/custom-vitepress-theme-demo/node_modules/.pnpm/custom-vitepress-theme@0.0.2_vitepress@1.0.0-alpha.64/node_modules/custom-vitepress-theme/src/vitepress/styles/variables.css"; +import "D:/pengpian/git/custom-vitepress-theme-demo/node_modules/.pnpm/custom-vitepress-theme@0.0.2_vitepress@1.0.0-alpha.64/node_modules/custom-vitepress-theme/src/vitepress/styles/switch.css"; +import "D:/pengpian/git/custom-vitepress-theme-demo/node_modules/.pnpm/custom-vitepress-theme@0.0.2_vitepress@1.0.0-alpha.64/node_modules/custom-vitepress-theme/src/vitepress/styles/custom.css"; +import "D:/pengpian/git/custom-vitepress-theme-demo/node_modules/.pnpm/custom-vitepress-theme@0.0.2_vitepress@1.0.0-alpha.64/node_modules/custom-vitepress-theme/src/vitepress/styles/theme.css"; +import Layout from "D:/pengpian/git/custom-vitepress-theme-demo/node_modules/.pnpm/custom-vitepress-theme@0.0.2_vitepress@1.0.0-alpha.64/node_modules/custom-vitepress-theme/src/vitepress/components/Layout.vue"; +import Search from "D:/pengpian/git/custom-vitepress-theme-demo/node_modules/.pnpm/custom-vitepress-theme@0.0.2_vitepress@1.0.0-alpha.64/node_modules/custom-vitepress-theme/src/vitepress/components/Search.vue"; +import Archives from "D:/pengpian/git/custom-vitepress-theme-demo/node_modules/.pnpm/custom-vitepress-theme@0.0.2_vitepress@1.0.0-alpha.64/node_modules/custom-vitepress-theme/src/vitepress/components/Archives.vue"; +import Home from "D:/pengpian/git/custom-vitepress-theme-demo/node_modules/.pnpm/custom-vitepress-theme@0.0.2_vitepress@1.0.0-alpha.64/node_modules/custom-vitepress-theme/src/vitepress/components/Home.vue"; +import DefaultPage from "D:/pengpian/git/custom-vitepress-theme-demo/node_modules/.pnpm/custom-vitepress-theme@0.0.2_vitepress@1.0.0-alpha.64/node_modules/custom-vitepress-theme/src/vitepress/components/DefaultPage.vue"; +import CategoryPage from "D:/pengpian/git/custom-vitepress-theme-demo/node_modules/.pnpm/custom-vitepress-theme@0.0.2_vitepress@1.0.0-alpha.64/node_modules/custom-vitepress-theme/src/vitepress/components/CategoryPage.vue"; -// node_modules/.pnpm/ppst-vitepress-theme@0.0.2_vitepress@1.0.0-alpha.64/node_modules/ppst-vitepress-theme/src/vitepress/composables/config.ts +// node_modules/.pnpm/custom-vitepress-theme@0.0.2_vitepress@1.0.0-alpha.64/node_modules/custom-vitepress-theme/src/vitepress/composables/config.ts import { useData } from "vitepress"; var configSymbol = Symbol("config"); function withConfigProvider(App) { @@ -31,7 +31,7 @@ function withConfigProvider(App) { }); } -// node_modules/.pnpm/ppst-vitepress-theme@0.0.2_vitepress@1.0.0-alpha.64/node_modules/ppst-vitepress-theme/src/vitepress/index.ts +// node_modules/.pnpm/custom-vitepress-theme@0.0.2_vitepress@1.0.0-alpha.64/node_modules/custom-vitepress-theme/src/vitepress/index.ts var CustomTheme = { Layout: withConfigProvider(Layout), NotFound: () => "custom 404", @@ -46,4 +46,4 @@ var CustomTheme = { export { CustomTheme }; -//# sourceMappingURL=ppst-vitepress-theme.js.map +//# sourceMappingURL=custom-vitepress-theme.js.map diff --git a/.vitepress/cache/deps/ppst-vitepress-theme.js.map b/.vitepress/cache/deps/ppst-vitepress-theme.js.map index c34b16b..3093a4d 100644 --- a/.vitepress/cache/deps/ppst-vitepress-theme.js.map +++ b/.vitepress/cache/deps/ppst-vitepress-theme.js.map @@ -1,6 +1,6 @@ { "version": 3, - "sources": ["../../../node_modules/.pnpm/ppst-vitepress-theme@0.0.2_vitepress@1.0.0-alpha.64/node_modules/ppst-vitepress-theme/src/vitepress/index.ts", "../../../node_modules/.pnpm/ppst-vitepress-theme@0.0.2_vitepress@1.0.0-alpha.64/node_modules/ppst-vitepress-theme/src/vitepress/composables/config.ts"], + "sources": ["../../../node_modules/.pnpm/custom-vitepress-theme@0.0.2_vitepress@1.0.0-alpha.64/node_modules/custom-vitepress-theme/src/vitepress/index.ts", "../../../node_modules/.pnpm/custom-vitepress-theme@0.0.2_vitepress@1.0.0-alpha.64/node_modules/custom-vitepress-theme/src/vitepress/composables/config.ts"], "sourcesContent": ["import 'normalize.css/normalize.css'\nimport './styles/variables.css'\nimport './styles/switch.css'\nimport './styles/custom.css'\nimport './styles/theme.css'\nimport Layout from './components/Layout.vue'\nimport Search from './components/Search.vue'\nimport Archives from './components/Archives.vue'\nimport Home from './components/Home.vue'\nimport DefaultPage from './components/DefaultPage.vue'\nimport CategoryPage from './components/CategoryPage.vue'\nimport { Theme } from 'vitepress'\nimport { withConfigProvider } from './composables/config'\n\nconst CustomTheme: Theme = {\n Layout: withConfigProvider(Layout),\n NotFound: () => 'custom 404',\n enhanceApp({ app }) {\n app.component('Search', Search)\n app.component('Archives', Archives)\n app.component('Home', Home)\n app.component('DefaultPage', DefaultPage)\n app.component('CategoryPage', CategoryPage)\n }\n}\n\nexport { CustomTheme }\nexport type { Config } from './config'\n", "import {\n Component,\n defineComponent,\n h,\n inject,\n InjectionKey,\n provide,\n Ref\n} from 'vue'\nimport { useData } from 'vitepress'\nimport { Config } from '../config'\n\nconst configSymbol: InjectionKey> = Symbol('config')\nexport function withConfigProvider(App: Component) {\n return defineComponent({\n name: 'ConfigProvider',\n setup(_, { slots }) {\n const { theme } = useData()\n provide(configSymbol, theme.value)\n return () => h(App, null, slots)\n }\n })\n}\n\nexport function useConfig() {\n return {\n config: inject(configSymbol)!\n }\n}\n"], "mappings": ";;;;;;;AAAA,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO,YAAY;AACnB,OAAO,YAAY;AACnB,OAAO,cAAc;AACrB,OAAO,UAAU;AACjB,OAAO,iBAAiB;AACxB,OAAO,kBAAkB;;;ACDzB,SAAS,eAAe;AAGxB,IAAM,eAA0C,OAAO,QAAQ;AACxD,SAAS,mBAAmB,KAAgB;AACjD,SAAO,gBAAgB;AAAA,IACrB,MAAM;AAAA,IACN,MAAM,GAAG,EAAE,MAAM,GAAG;AAClB,YAAM,EAAE,MAAM,IAAI,QAAQ;AAC1B,cAAQ,cAAc,MAAM,KAAK;AACjC,aAAO,MAAM,EAAE,KAAK,MAAM,KAAK;AAAA,IACjC;AAAA,EACF,CAAC;AACH;;;ADRA,IAAM,cAAqB;AAAA,EACzB,QAAQ,mBAAmB,MAAM;AAAA,EACjC,UAAU,MAAM;AAAA,EAChB,WAAW,EAAE,IAAI,GAAG;AAClB,QAAI,UAAU,UAAU,MAAM;AAC9B,QAAI,UAAU,YAAY,QAAQ;AAClC,QAAI,UAAU,QAAQ,IAAI;AAC1B,QAAI,UAAU,eAAe,WAAW;AACxC,QAAI,UAAU,gBAAgB,YAAY;AAAA,EAC5C;AACF;", "names": [] diff --git a/.vitepress/theme/index.ts b/.vitepress/theme/index.ts index 57f5d2a..3be2fa4 100644 --- a/.vitepress/theme/index.ts +++ b/.vitepress/theme/index.ts @@ -1,4 +1,4 @@ -import { CustomTheme } from 'ppst-vitepress-theme' +import { CustomTheme } from 'custom-vitepress-theme' // import { h } from 'vue' import './override.css' diff --git a/package.json b/package.json index 370d2c1..61adf69 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,6 @@ "@types/node": "^18.15.11", "markdown-from-posts": "^1.0.5", "vitepress": "1.0.0-alpha.64", - "ppst-vitepress-theme": "^0.0.2" + "custom-vitepress-theme": "^0.0.2" } }