提交 74486aea 编写于 作者: D DCloud_LXH

chore: update theme to 1.3.6

上级 4ae47d4f
......@@ -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')
......
export default {
onThisPage: '文内容',
onThisPage: '页导读',
collapseText: '展示全部',
expandText: '收起目录'
}
\ No newline at end of file
......@@ -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==
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册