Merge pull request #14 from szhhwh/feat/search-pro

Feat/search pro
This commit is contained in:
狮子耗耗 2024-11-18 17:55:35 +08:00 committed by GitHub
commit f28e836346
5 changed files with 58 additions and 21 deletions

View File

@ -18,9 +18,10 @@
"vuepress-theme-hope": "2.0.0-rc.59" "vuepress-theme-hope": "2.0.0-rc.59"
}, },
"volta": { "volta": {
"node": "20.17.0" "node": "22.11.0"
}, },
"dependencies": { "dependencies": {
"katex": "^0.16.11" "katex": "^0.16.11",
"vuepress-plugin-search-pro": "2.0.0-rc.59"
} }
} }

56
pnpm-lock.yaml generated
View File

@ -11,6 +11,9 @@ importers:
katex: katex:
specifier: ^0.16.11 specifier: ^0.16.11
version: 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: devDependencies:
'@vuepress/bundler-vite': '@vuepress/bundler-vite':
specifier: 2.0.0-rc.18 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) 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: vuepress-theme-hope:
specifier: 2.0.0-rc.59 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: packages:
@ -472,55 +475,46 @@ packages:
resolution: {integrity: sha512-10ICosOwYChROdQoQo589N5idQIisxjaFE/PAnX2i0Zr84mY0k9zul1ArH0rnJ/fpgiqfu13TFZR5A5YJLOYZA==} resolution: {integrity: sha512-10ICosOwYChROdQoQo589N5idQIisxjaFE/PAnX2i0Zr84mY0k9zul1ArH0rnJ/fpgiqfu13TFZR5A5YJLOYZA==}
cpu: [arm] cpu: [arm]
os: [linux] os: [linux]
libc: [glibc]
'@rollup/rollup-linux-arm-musleabihf@4.24.4': '@rollup/rollup-linux-arm-musleabihf@4.24.4':
resolution: {integrity: sha512-ySAfWs69LYC7QhRDZNKqNhz2UKN8LDfbKSMAEtoEI0jitwfAG2iZwVqGACJT+kfYvvz3/JgsLlcBP+WWoKCLcw==} resolution: {integrity: sha512-ySAfWs69LYC7QhRDZNKqNhz2UKN8LDfbKSMAEtoEI0jitwfAG2iZwVqGACJT+kfYvvz3/JgsLlcBP+WWoKCLcw==}
cpu: [arm] cpu: [arm]
os: [linux] os: [linux]
libc: [musl]
'@rollup/rollup-linux-arm64-gnu@4.24.4': '@rollup/rollup-linux-arm64-gnu@4.24.4':
resolution: {integrity: sha512-uHYJ0HNOI6pGEeZ/5mgm5arNVTI0nLlmrbdph+pGXpC9tFHFDQmDMOEqkmUObRfosJqpU8RliYoGz06qSdtcjg==} resolution: {integrity: sha512-uHYJ0HNOI6pGEeZ/5mgm5arNVTI0nLlmrbdph+pGXpC9tFHFDQmDMOEqkmUObRfosJqpU8RliYoGz06qSdtcjg==}
cpu: [arm64] cpu: [arm64]
os: [linux] os: [linux]
libc: [glibc]
'@rollup/rollup-linux-arm64-musl@4.24.4': '@rollup/rollup-linux-arm64-musl@4.24.4':
resolution: {integrity: sha512-38yiWLemQf7aLHDgTg85fh3hW9stJ0Muk7+s6tIkSUOMmi4Xbv5pH/5Bofnsb6spIwD5FJiR+jg71f0CH5OzoA==} resolution: {integrity: sha512-38yiWLemQf7aLHDgTg85fh3hW9stJ0Muk7+s6tIkSUOMmi4Xbv5pH/5Bofnsb6spIwD5FJiR+jg71f0CH5OzoA==}
cpu: [arm64] cpu: [arm64]
os: [linux] os: [linux]
libc: [musl]
'@rollup/rollup-linux-powerpc64le-gnu@4.24.4': '@rollup/rollup-linux-powerpc64le-gnu@4.24.4':
resolution: {integrity: sha512-q73XUPnkwt9ZNF2xRS4fvneSuaHw2BXuV5rI4cw0fWYVIWIBeDZX7c7FWhFQPNTnE24172K30I+dViWRVD9TwA==} resolution: {integrity: sha512-q73XUPnkwt9ZNF2xRS4fvneSuaHw2BXuV5rI4cw0fWYVIWIBeDZX7c7FWhFQPNTnE24172K30I+dViWRVD9TwA==}
cpu: [ppc64] cpu: [ppc64]
os: [linux] os: [linux]
libc: [glibc]
'@rollup/rollup-linux-riscv64-gnu@4.24.4': '@rollup/rollup-linux-riscv64-gnu@4.24.4':
resolution: {integrity: sha512-Aie/TbmQi6UXokJqDZdmTJuZBCU3QBDA8oTKRGtd4ABi/nHgXICulfg1KI6n9/koDsiDbvHAiQO3YAUNa/7BCw==} resolution: {integrity: sha512-Aie/TbmQi6UXokJqDZdmTJuZBCU3QBDA8oTKRGtd4ABi/nHgXICulfg1KI6n9/koDsiDbvHAiQO3YAUNa/7BCw==}
cpu: [riscv64] cpu: [riscv64]
os: [linux] os: [linux]
libc: [glibc]
'@rollup/rollup-linux-s390x-gnu@4.24.4': '@rollup/rollup-linux-s390x-gnu@4.24.4':
resolution: {integrity: sha512-P8MPErVO/y8ohWSP9JY7lLQ8+YMHfTI4bAdtCi3pC2hTeqFJco2jYspzOzTUB8hwUWIIu1xwOrJE11nP+0JFAQ==} resolution: {integrity: sha512-P8MPErVO/y8ohWSP9JY7lLQ8+YMHfTI4bAdtCi3pC2hTeqFJco2jYspzOzTUB8hwUWIIu1xwOrJE11nP+0JFAQ==}
cpu: [s390x] cpu: [s390x]
os: [linux] os: [linux]
libc: [glibc]
'@rollup/rollup-linux-x64-gnu@4.24.4': '@rollup/rollup-linux-x64-gnu@4.24.4':
resolution: {integrity: sha512-K03TljaaoPK5FOyNMZAAEmhlyO49LaE4qCsr0lYHUKyb6QacTNF9pnfPpXnFlFD3TXuFbFbz7tJ51FujUXkXYA==} resolution: {integrity: sha512-K03TljaaoPK5FOyNMZAAEmhlyO49LaE4qCsr0lYHUKyb6QacTNF9pnfPpXnFlFD3TXuFbFbz7tJ51FujUXkXYA==}
cpu: [x64] cpu: [x64]
os: [linux] os: [linux]
libc: [glibc]
'@rollup/rollup-linux-x64-musl@4.24.4': '@rollup/rollup-linux-x64-musl@4.24.4':
resolution: {integrity: sha512-VJYl4xSl/wqG2D5xTYncVWW+26ICV4wubwN9Gs5NrqhJtayikwCXzPL8GDsLnaLU3WwhQ8W02IinYSFJfyo34Q==} resolution: {integrity: sha512-VJYl4xSl/wqG2D5xTYncVWW+26ICV4wubwN9Gs5NrqhJtayikwCXzPL8GDsLnaLU3WwhQ8W02IinYSFJfyo34Q==}
cpu: [x64] cpu: [x64]
os: [linux] os: [linux]
libc: [musl]
'@rollup/rollup-win32-arm64-msvc@4.24.4': '@rollup/rollup-win32-arm64-msvc@4.24.4':
resolution: {integrity: sha512-ku2GvtPwQfCqoPFIJCqZ8o7bJcj+Y54cZSr43hHca6jLwAiCbZdBUOrqE6y29QFajNAzzpIOwsckaTFmN6/8TA==} resolution: {integrity: sha512-ku2GvtPwQfCqoPFIJCqZ8o7bJcj+Y54cZSr43hHca6jLwAiCbZdBUOrqE6y29QFajNAzzpIOwsckaTFmN6/8TA==}
@ -1711,6 +1705,10 @@ packages:
resolution: {integrity: sha512-ZA6oR3T/pEyuqwMgAKT0/hAv8oAXckzbkmR0UkUosQ+Mc4RxGoJkRmwHgHufaenlyAgE1Mxgpdcrf75y6XcnDg==} resolution: {integrity: sha512-ZA6oR3T/pEyuqwMgAKT0/hAv8oAXckzbkmR0UkUosQ+Mc4RxGoJkRmwHgHufaenlyAgE1Mxgpdcrf75y6XcnDg==}
engines: {node: '>=14.16'} engines: {node: '>=14.16'}
slimsearch@2.2.1:
resolution: {integrity: sha512-XvRjYHgyK4VXIvqYElyBpUFceK2Reh0CeIM3wzehFeTKJR9mg7qL42OCeXCY2F2GL9IkBNaGWXoZ/YyT86XgtA==}
engines: {node: '>=18.18.0'}
source-map-js@1.2.1: source-map-js@1.2.1:
resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==}
engines: {node: '>=0.10.0'} engines: {node: '>=0.10.0'}
@ -1962,6 +1960,22 @@ packages:
sass-loader: sass-loader:
optional: true 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: vuepress-shared@2.0.0-rc.59:
resolution: {integrity: sha512-NUGEX8e4TQ2L6F7ooLDELRtUWiHxE5ztP1rJxyg9FzKZ6MiINB5b669LcQSh/xAlY4fm9p80Y4C/52+zmNDEoA==} resolution: {integrity: sha512-NUGEX8e4TQ2L6F7ooLDELRtUWiHxE5ztP1rJxyg9FzKZ6MiINB5b669LcQSh/xAlY4fm9p80Y4C/52+zmNDEoA==}
engines: {node: '>=18.19.0', npm: '>=8', pnpm: '>=7', yarn: '>=2'} engines: {node: '>=18.19.0', npm: '>=8', pnpm: '>=7', yarn: '>=2'}
@ -3816,6 +3830,8 @@ snapshots:
slash@5.1.0: {} slash@5.1.0: {}
slimsearch@2.2.1: {}
source-map-js@1.2.1: {} source-map-js@1.2.1: {}
space-separated-tokens@2.0.2: {} space-separated-tokens@2.0.2: {}
@ -4004,6 +4020,23 @@ snapshots:
- markdown-it - markdown-it
- typescript - 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)): 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: 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/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' - '@vue/composition-api'
- typescript - 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: 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/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)) '@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)) 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: optionalDependencies:
sass-embedded: 1.80.6 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: transitivePeerDependencies:
- '@vue/composition-api' - '@vue/composition-api'
- '@vue/repl' - '@vue/repl'

View File

@ -87,7 +87,8 @@ export default hopeTheme({
type: "katex", type: "katex",
}, },
markdownTab: true, markdownTab: true,
git: true git: true,
searchPro: true,
}, },
pageInfo: [ pageInfo: [
"Author", "Date", "ReadingTime", "Word" "Author", "Date", "ReadingTime", "Word"

View File

@ -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 ## 2024.11.8
- [3.2 初识 InDesign](../ChapterNo3/3.2.md) - [3.2 初识 InDesign](../ChapterNo3/3.2.md)
- 新增**使用模板创建文档**步骤 <badge text="新" type="tip"/> - 新增**使用模板创建文档**步骤
- 将**串接文本框架**从 [3.3 基本操作](../ChapterNo3/3.3.md) 调整到本节 - 将**串接文本框架**从 [3.3 基本操作](../ChapterNo3/3.3.md) 调整到本节
- [1.2 美编全流程](../ChapterNo1/1.2.md) -> 修正部分链接错误 - [1.2 美编全流程](../ChapterNo1/1.2.md) -> 修正部分链接错误
- [附录:文学社公开资源](../Appendix/resource.md) -> 添加文学社标准字体说明 - [附录:文学社公开资源](../Appendix/resource.md) -> 添加文学社标准字体说明

View File

@ -13,12 +13,8 @@ icon: book
::: :::
## 最近更新 ## 最近更新
### 2024.11.10 ### 2024.11.18
- [4.1 搜寻图片](./ChapterNo4/4.1.md#常用的素材网站) -> 补充爱给网 - 为文档添加搜索功能(目前仅支持搜索标题)
### 2024.11.9
- [3.2 初识 InDesign](./ChapterNo3/3.2.md#版面辅助线) -> 新增**版面辅助线** <badge text="新" type="tip"/>
<badge text="新" type="tip"/>
> [附录:历史更新日志](Appendix/changelog.md) > [附录:历史更新日志](Appendix/changelog.md)