diff --git a/docs/.vuepress/markdown/createSidebar.js b/docs/.vuepress/markdown/createSidebar.js
index ca5ac691f1003da692b8357b65187520586bb637..10c5654f7ef759a3fef3f9bea082c5508f18c0a5 100644
--- a/docs/.vuepress/markdown/createSidebar.js
+++ b/docs/.vuepress/markdown/createSidebar.js
@@ -46,7 +46,7 @@ function parseBar(tab, file, options) {
}
}
- link = path.join('/', link.replace(/\.md\b/, '.html')
+ link = path.join('/', link.replace(/\.md\b/, '')
.replace(/\bREADME\b/, '')
.replace(/\/index/, '/')
.replace(/\?id=/, '#'))
diff --git a/docs/.vuepress/markdown/createSiteMap.js b/docs/.vuepress/markdown/createSiteMap.js
index 28343a25ec6ed1a3acc679e2cae88c89c2f6f98c..b3d54e7e735eb4086d9456813374d13ee071ca60 100644
--- a/docs/.vuepress/markdown/createSiteMap.js
+++ b/docs/.vuepress/markdown/createSiteMap.js
@@ -1,7 +1,7 @@
const fs = require('fs')
const path = require('path')
-const domain = 'https://zh.uniapp.dcloud.io'
+const domain = 'https://doc.dcloud.net.cn'
const xmlBefore = `
`
@@ -9,6 +9,7 @@ const xmlAfter = `\n`
module.exports = (links, callback = () => { }) => {
const xmlItems = links.map(url => {
+ if (!url.endsWith('/') && !url.endsWith('html')) url += '.html'
return `
${domain + url}
`
diff --git a/package.json b/package.json
index 05bfde36baa99eeff772ae8179a27d308d0724d1..79852adbc8e2b96d4b7da865d4b4f998097bd99c 100644
--- a/package.json
+++ b/package.json
@@ -1,5 +1,5 @@
{
- "name": "unidocs-uni-app-x-zh-zh",
+ "name": "unidocs-uni-app-x-zh",
"version": "1.0.0",
"description": "",
"main": "index.js",