From 48bcf489d6d38c3f1d3425de78a934d5df88d754 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8B=AE=E5=AD=90=E8=80=97=E8=80=97?= <3116737282@qq.com> Date: Mon, 18 Nov 2024 17:46:37 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 5 +++-- pnpm-lock.yaml | 56 ++++++++++++++++++++++++++++++++++++++++---------- 2 files changed, 48 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index ca45fa3..743cca5 100644 --- a/package.json +++ b/package.json @@ -18,9 +18,10 @@ "vuepress-theme-hope": "2.0.0-rc.59" }, "volta": { - "node": "20.17.0" + "node": "22.11.0" }, "dependencies": { - "katex": "^0.16.11" + "katex": "^0.16.11", + "vuepress-plugin-search-pro": "2.0.0-rc.59" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 069993b..a7a84aa 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,6 +11,9 @@ importers: katex: specifier: ^0.16.11 version: 0.16.11 + vuepress-plugin-search-pro: + specifier: 2.0.0-rc.59 + version: 2.0.0-rc.59(sass-embedded@1.80.6)(vuepress@2.0.0-rc.18(@vuepress/bundler-vite@2.0.0-rc.18(@types/node@22.9.0)(sass-embedded@1.80.6))(vue@3.5.12)) devDependencies: '@vuepress/bundler-vite': specifier: 2.0.0-rc.18 @@ -26,7 +29,7 @@ importers: version: 2.0.0-rc.18(@vuepress/bundler-vite@2.0.0-rc.18(@types/node@22.9.0)(sass-embedded@1.80.6))(vue@3.5.12) vuepress-theme-hope: specifier: 2.0.0-rc.59 - version: 2.0.0-rc.59(katex@0.16.11)(markdown-it@14.1.0)(sass-embedded@1.80.6)(vuepress@2.0.0-rc.18(@vuepress/bundler-vite@2.0.0-rc.18(@types/node@22.9.0)(sass-embedded@1.80.6))(vue@3.5.12)) + version: 2.0.0-rc.59(katex@0.16.11)(markdown-it@14.1.0)(sass-embedded@1.80.6)(vuepress-plugin-search-pro@2.0.0-rc.59(sass-embedded@1.80.6)(vuepress@2.0.0-rc.18(@vuepress/bundler-vite@2.0.0-rc.18(@types/node@22.9.0)(sass-embedded@1.80.6))(vue@3.5.12)))(vuepress@2.0.0-rc.18(@vuepress/bundler-vite@2.0.0-rc.18(@types/node@22.9.0)(sass-embedded@1.80.6))(vue@3.5.12)) packages: @@ -472,55 +475,46 @@ packages: resolution: {integrity: sha512-10ICosOwYChROdQoQo589N5idQIisxjaFE/PAnX2i0Zr84mY0k9zul1ArH0rnJ/fpgiqfu13TFZR5A5YJLOYZA==} cpu: [arm] os: [linux] - libc: [glibc] '@rollup/rollup-linux-arm-musleabihf@4.24.4': resolution: {integrity: sha512-ySAfWs69LYC7QhRDZNKqNhz2UKN8LDfbKSMAEtoEI0jitwfAG2iZwVqGACJT+kfYvvz3/JgsLlcBP+WWoKCLcw==} cpu: [arm] os: [linux] - libc: [musl] '@rollup/rollup-linux-arm64-gnu@4.24.4': resolution: {integrity: sha512-uHYJ0HNOI6pGEeZ/5mgm5arNVTI0nLlmrbdph+pGXpC9tFHFDQmDMOEqkmUObRfosJqpU8RliYoGz06qSdtcjg==} cpu: [arm64] os: [linux] - libc: [glibc] '@rollup/rollup-linux-arm64-musl@4.24.4': resolution: {integrity: sha512-38yiWLemQf7aLHDgTg85fh3hW9stJ0Muk7+s6tIkSUOMmi4Xbv5pH/5Bofnsb6spIwD5FJiR+jg71f0CH5OzoA==} cpu: [arm64] os: [linux] - libc: [musl] '@rollup/rollup-linux-powerpc64le-gnu@4.24.4': resolution: {integrity: sha512-q73XUPnkwt9ZNF2xRS4fvneSuaHw2BXuV5rI4cw0fWYVIWIBeDZX7c7FWhFQPNTnE24172K30I+dViWRVD9TwA==} cpu: [ppc64] os: [linux] - libc: [glibc] '@rollup/rollup-linux-riscv64-gnu@4.24.4': resolution: {integrity: sha512-Aie/TbmQi6UXokJqDZdmTJuZBCU3QBDA8oTKRGtd4ABi/nHgXICulfg1KI6n9/koDsiDbvHAiQO3YAUNa/7BCw==} cpu: [riscv64] os: [linux] - libc: [glibc] '@rollup/rollup-linux-s390x-gnu@4.24.4': resolution: {integrity: sha512-P8MPErVO/y8ohWSP9JY7lLQ8+YMHfTI4bAdtCi3pC2hTeqFJco2jYspzOzTUB8hwUWIIu1xwOrJE11nP+0JFAQ==} cpu: [s390x] os: [linux] - libc: [glibc] '@rollup/rollup-linux-x64-gnu@4.24.4': resolution: {integrity: sha512-K03TljaaoPK5FOyNMZAAEmhlyO49LaE4qCsr0lYHUKyb6QacTNF9pnfPpXnFlFD3TXuFbFbz7tJ51FujUXkXYA==} cpu: [x64] os: [linux] - libc: [glibc] '@rollup/rollup-linux-x64-musl@4.24.4': resolution: {integrity: sha512-VJYl4xSl/wqG2D5xTYncVWW+26ICV4wubwN9Gs5NrqhJtayikwCXzPL8GDsLnaLU3WwhQ8W02IinYSFJfyo34Q==} cpu: [x64] os: [linux] - libc: [musl] '@rollup/rollup-win32-arm64-msvc@4.24.4': resolution: {integrity: sha512-ku2GvtPwQfCqoPFIJCqZ8o7bJcj+Y54cZSr43hHca6jLwAiCbZdBUOrqE6y29QFajNAzzpIOwsckaTFmN6/8TA==} @@ -1711,6 +1705,10 @@ packages: resolution: {integrity: sha512-ZA6oR3T/pEyuqwMgAKT0/hAv8oAXckzbkmR0UkUosQ+Mc4RxGoJkRmwHgHufaenlyAgE1Mxgpdcrf75y6XcnDg==} engines: {node: '>=14.16'} + slimsearch@2.2.1: + resolution: {integrity: sha512-XvRjYHgyK4VXIvqYElyBpUFceK2Reh0CeIM3wzehFeTKJR9mg7qL42OCeXCY2F2GL9IkBNaGWXoZ/YyT86XgtA==} + engines: {node: '>=18.18.0'} + source-map-js@1.2.1: resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} engines: {node: '>=0.10.0'} @@ -1962,6 +1960,22 @@ packages: sass-loader: optional: true + vuepress-plugin-search-pro@2.0.0-rc.59: + resolution: {integrity: sha512-lMkslae/+0i7f7MnD4wG2HPLRb+qlJ/8OvDlWgyeJTeutOxeCVj49uKLlfnquoZDnin60wDXUBvjY3BX03i6/g==} + engines: {node: '>=18.19.0', npm: '>=8', pnpm: '>=7', yarn: '>=2'} + peerDependencies: + sass: ^1.80.3 + sass-embedded: ^1.80.3 + sass-loader: ^16.0.2 + vuepress: 2.0.0-rc.18 + peerDependenciesMeta: + sass: + optional: true + sass-embedded: + optional: true + sass-loader: + optional: true + vuepress-shared@2.0.0-rc.59: resolution: {integrity: sha512-NUGEX8e4TQ2L6F7ooLDELRtUWiHxE5ztP1rJxyg9FzKZ6MiINB5b669LcQSh/xAlY4fm9p80Y4C/52+zmNDEoA==} engines: {node: '>=18.19.0', npm: '>=8', pnpm: '>=7', yarn: '>=2'} @@ -3816,6 +3830,8 @@ snapshots: slash@5.1.0: {} + slimsearch@2.2.1: {} + source-map-js@1.2.1: {} space-separated-tokens@2.0.2: {} @@ -4004,6 +4020,23 @@ snapshots: - markdown-it - typescript + vuepress-plugin-search-pro@2.0.0-rc.59(sass-embedded@1.80.6)(vuepress@2.0.0-rc.18(@vuepress/bundler-vite@2.0.0-rc.18(@types/node@22.9.0)(sass-embedded@1.80.6))(vue@3.5.12)): + dependencies: + '@vuepress/helper': 2.0.0-rc.56(vuepress@2.0.0-rc.18(@vuepress/bundler-vite@2.0.0-rc.18(@types/node@22.9.0)(sass-embedded@1.80.6))(vue@3.5.12)) + '@vuepress/plugin-sass-palette': 2.0.0-rc.56(sass-embedded@1.80.6)(vuepress@2.0.0-rc.18(@vuepress/bundler-vite@2.0.0-rc.18(@types/node@22.9.0)(sass-embedded@1.80.6))(vue@3.5.12)) + '@vueuse/core': 11.2.0(vue@3.5.12) + cheerio: 1.0.0 + chokidar: 3.6.0 + slimsearch: 2.2.1 + vue: 3.5.12 + vuepress: 2.0.0-rc.18(@vuepress/bundler-vite@2.0.0-rc.18(@types/node@22.9.0)(sass-embedded@1.80.6))(vue@3.5.12) + vuepress-shared: 2.0.0-rc.59(vuepress@2.0.0-rc.18(@vuepress/bundler-vite@2.0.0-rc.18(@types/node@22.9.0)(sass-embedded@1.80.6))(vue@3.5.12)) + optionalDependencies: + sass-embedded: 1.80.6 + transitivePeerDependencies: + - '@vue/composition-api' + - typescript + vuepress-shared@2.0.0-rc.59(vuepress@2.0.0-rc.18(@vuepress/bundler-vite@2.0.0-rc.18(@types/node@22.9.0)(sass-embedded@1.80.6))(vue@3.5.12)): dependencies: '@vuepress/helper': 2.0.0-rc.56(vuepress@2.0.0-rc.18(@vuepress/bundler-vite@2.0.0-rc.18(@types/node@22.9.0)(sass-embedded@1.80.6))(vue@3.5.12)) @@ -4015,7 +4048,7 @@ snapshots: - '@vue/composition-api' - typescript - vuepress-theme-hope@2.0.0-rc.59(katex@0.16.11)(markdown-it@14.1.0)(sass-embedded@1.80.6)(vuepress@2.0.0-rc.18(@vuepress/bundler-vite@2.0.0-rc.18(@types/node@22.9.0)(sass-embedded@1.80.6))(vue@3.5.12)): + vuepress-theme-hope@2.0.0-rc.59(katex@0.16.11)(markdown-it@14.1.0)(sass-embedded@1.80.6)(vuepress-plugin-search-pro@2.0.0-rc.59(sass-embedded@1.80.6)(vuepress@2.0.0-rc.18(@vuepress/bundler-vite@2.0.0-rc.18(@types/node@22.9.0)(sass-embedded@1.80.6))(vue@3.5.12)))(vuepress@2.0.0-rc.18(@vuepress/bundler-vite@2.0.0-rc.18(@types/node@22.9.0)(sass-embedded@1.80.6))(vue@3.5.12)): dependencies: '@vuepress/helper': 2.0.0-rc.56(vuepress@2.0.0-rc.18(@vuepress/bundler-vite@2.0.0-rc.18(@types/node@22.9.0)(sass-embedded@1.80.6))(vue@3.5.12)) '@vuepress/plugin-active-header-links': 2.0.0-rc.55(vuepress@2.0.0-rc.18(@vuepress/bundler-vite@2.0.0-rc.18(@types/node@22.9.0)(sass-embedded@1.80.6))(vue@3.5.12)) @@ -4054,6 +4087,7 @@ snapshots: vuepress-shared: 2.0.0-rc.59(vuepress@2.0.0-rc.18(@vuepress/bundler-vite@2.0.0-rc.18(@types/node@22.9.0)(sass-embedded@1.80.6))(vue@3.5.12)) optionalDependencies: sass-embedded: 1.80.6 + vuepress-plugin-search-pro: 2.0.0-rc.59(sass-embedded@1.80.6)(vuepress@2.0.0-rc.18(@vuepress/bundler-vite@2.0.0-rc.18(@types/node@22.9.0)(sass-embedded@1.80.6))(vue@3.5.12)) transitivePeerDependencies: - '@vue/composition-api' - '@vue/repl' From 8de641153c56327b0474c332954bd88408874065 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8B=AE=E5=AD=90=E8=80=97=E8=80=97?= <3116737282@qq.com> Date: Mon, 18 Nov 2024 17:46:59 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=B8=BA=E6=96=87=E6=A1=A3=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=90=9C=E7=B4=A2=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/.vuepress/theme.ts | 3 ++- src/reference/Appendix/changelog.md | 7 ++++++- src/reference/README.md | 8 ++------ 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/.vuepress/theme.ts b/src/.vuepress/theme.ts index 275966a..9141df1 100644 --- a/src/.vuepress/theme.ts +++ b/src/.vuepress/theme.ts @@ -87,7 +87,8 @@ export default hopeTheme({ type: "katex", }, markdownTab: true, - git: true + git: true, + searchPro: true, }, pageInfo: [ "Author", "Date", "ReadingTime", "Word" diff --git a/src/reference/Appendix/changelog.md b/src/reference/Appendix/changelog.md index e4c5081..38e83ab 100644 --- a/src/reference/Appendix/changelog.md +++ b/src/reference/Appendix/changelog.md @@ -5,9 +5,14 @@ category: - 附录 --- +## 2024.11.10 +- [4.1 搜寻图片](../ChapterNo4/4.1.md#常用的素材网站) -> 补充爱给网 + +## 2024.11.9 +- [3.2 初识 InDesign](../ChapterNo3/3.2.md#版面辅助线) -> 新增**版面辅助线** ## 2024.11.8 - [3.2 初识 InDesign](../ChapterNo3/3.2.md) - - 新增**使用模板创建文档**步骤 + - 新增**使用模板创建文档**步骤 - 将**串接文本框架**从 [3.3 基本操作](../ChapterNo3/3.3.md) 调整到本节 - [1.2 美编全流程](../ChapterNo1/1.2.md) -> 修正部分链接错误 - [附录:文学社公开资源](../Appendix/resource.md) -> 添加文学社标准字体说明 diff --git a/src/reference/README.md b/src/reference/README.md index ebd8c5b..d11f4a8 100644 --- a/src/reference/README.md +++ b/src/reference/README.md @@ -13,12 +13,8 @@ icon: book ::: ## 最近更新 -### 2024.11.10 -- [4.1 搜寻图片](./ChapterNo4/4.1.md#常用的素材网站) -> 补充爱给网 - -### 2024.11.9 -- [3.2 初识 InDesign](./ChapterNo3/3.2.md#版面辅助线) -> 新增**版面辅助线** - +### 2024.11.18 +- 为文档添加搜索功能(目前仅支持搜索标题) > [附录:历史更新日志](Appendix/changelog.md)