From 74486aea4d3fdeda08ef16d1f546a8138ebf345a Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Wed, 29 Mar 2023 15:38:21 +0800 Subject: [PATCH] chore: update theme to 1.3.6 --- docs/.vuepress/config.js | 9 ++++----- docs/.vuepress/config/toc.js | 2 +- package.json | 2 +- yarn.lock | 21 +++++++++++++++++---- 4 files changed, 23 insertions(+), 11 deletions(-) diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 5b9fb931a..e35d95a51 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -9,6 +9,7 @@ const copyOptions = require('./config/copy'); const config = { theme: 'vuepress-theme-uni-app-test', title: 'uni-app官网', + description: 'uni-app,uniCloud,serverless', head: [ ['link', { rel: 'shortcut icon', @@ -29,12 +30,10 @@ const config = { themeConfig: { titleLogo: 'https://web-assets.dcloud.net.cn/unidoc/zh/uni-app.png', logo: 'https://web-assets.dcloud.net.cn/unidoc/zh/logo.png', - // TODO use plugin/theme sidebar: createSidebar(tabs), sidebarDepth: 0, nextLinks: false, prevLinks: false, - // TODO use theme repo: 'dcloudio/uni-app', docsRepo: 'https://gitcode.net/dcloud/unidocs-zh', docsBranch: 'master', @@ -53,7 +52,7 @@ const config = { }, markdown: { // toc: { includeLevel: [1, 2, 3, 4] }, - slugify(str) { + slugify (str) { if (typeof str !== 'string') return '' let slug = str @@ -66,7 +65,7 @@ const config = { return slugify(slug) }, extractHeaders: ['h1', 'h2', 'h3', 'h4'], - chainMarkdown(config) { + chainMarkdown (config) { config .plugin('translate') .use(translatePlugin) @@ -78,7 +77,7 @@ const config = { .use(require('./markdown/normallizeLink')) } }, - chainWebpack(config, isServer) { + chainWebpack (config, isServer) { config.resolve.alias.set( '@theme-config', path.resolve(process.cwd(), 'docs/.vuepress/config') diff --git a/docs/.vuepress/config/toc.js b/docs/.vuepress/config/toc.js index 910ffa7dc..948ff20ed 100644 --- a/docs/.vuepress/config/toc.js +++ b/docs/.vuepress/config/toc.js @@ -1,5 +1,5 @@ export default { - onThisPage: '本文内容', + onThisPage: '本页导读', collapseText: '展示全部', expandText: '收起目录' } \ No newline at end of file diff --git a/package.json b/package.json index ace9f471e..ac262d66d 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "cross-env": "^7.0.3", "fs-extra": "^10.0.0", "glob": "^7.1.7", - "vuepress-theme-uni-app-test": "^1.3.5" + "vuepress-theme-uni-app-test": "^1.3.6" }, "dependencies": { "@docsearch/js": "^3.1.0", diff --git a/yarn.lock b/yarn.lock index e01cc2a2c..a90c743d2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9208,10 +9208,17 @@ vuepress-plugin-smooth-scroll@^0.0.3: dependencies: smoothscroll-polyfill "^0.4.3" -vuepress-theme-uni-app-test@^1.3.5: - version "1.3.5" - resolved "https://registry.npmmirror.com/vuepress-theme-uni-app-test/-/vuepress-theme-uni-app-test-1.3.5.tgz#87d5a91a4dc3fa2a9eda375483ff9008f3607b89" - integrity sha512-ULC2HelbWnWBz3dbH51zDF7ip92x8PUbipRbo9dLSgPRjKx3s0X6SWZpYX9SLyPsHoJ4x0y1+or6JnxaspmVcg== +vuepress-plugin-zooming@^1.1.8: + version "1.1.8" + resolved "https://registry.npmmirror.com/vuepress-plugin-zooming/-/vuepress-plugin-zooming-1.1.8.tgz#d49f201218bbcc73bcd30a79071f0cde201327e0" + integrity sha512-QAspMEqzerd0n8z/oOL5a67V/QaFZyjSwfo86y6PWhDdVAeOLR7umJ7syQqJpMdN9EVxmAstuzbKHkRxWzL0NQ== + dependencies: + zooming "^2.1.1" + +vuepress-theme-uni-app-test@^1.3.6: + version "1.3.6" + resolved "https://registry.npmmirror.com/vuepress-theme-uni-app-test/-/vuepress-theme-uni-app-test-1.3.6.tgz#f22a5084988ccb047a36415622d020cb1cd3049e" + integrity sha512-r734HP1GcBDVOd4gGI98UO423zljYVucxbo4oJB8+4cgxs7kji7NHVbzbrcG1KhLIqhwX/IuyYNKeQ/NlmrY2w== dependencies: "@vuepress/plugin-back-to-top" "^1.9.5" "@vuepress/theme-default" "^1.8.2" @@ -9220,6 +9227,7 @@ vuepress-theme-uni-app-test@^1.3.5: vuepress "^1.9.8" vuepress-plugin-juejin-style-copy "^1.0.4" vuepress-plugin-mermaidjs "1.9.1" + vuepress-plugin-zooming "^1.1.8" vuepress@^1.9.8: version "1.9.8" @@ -9538,3 +9546,8 @@ zepto@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/zepto/-/zepto-1.2.0.tgz#e127bd9e66fd846be5eab48c1394882f7c0e4f98" integrity sha1-4Se9nmb9hGvl6rSME5SIL3wOT5g= + +zooming@^2.1.1: + version "2.1.1" + resolved "https://registry.npmmirror.com/zooming/-/zooming-2.1.1.tgz#3e05006b4e10335235ca626244d053d90a9c7e72" + integrity sha512-Z38dkZRQsFNBE67+xDBQLNKMs5J1Gc+s3/zO6iezTrC24VYLJV7YPBdBDJmiLhff5qa6Awxv4wsjqx3oYz2MYA== -- GitLab