diff --git a/docs/.vuepress/markdown/add-base-to-md.js b/docs/.vuepress/markdown/add-base-to-md.js index f6839fd80ad10b64e9f16349a136e2c5c33931c2..1f6923d62fe13ddb551f9f7b34e4ce00cc686d3d 100644 --- a/docs/.vuepress/markdown/add-base-to-md.js +++ b/docs/.vuepress/markdown/add-base-to-md.js @@ -10,7 +10,8 @@ module.exports = function (md, { base = '/' }) { if (attr[0] === 'href') { // /abc/def.md => ${base}/abc/def.md if (attr[1].indexOf('/') === 0 && attr[1].indexOf(base) !== 0) attr[1] = base + attr[1].slice(1) - if (/^\w/.test(attr[1])) attr[1] = './' + attr[1] + // abc/def.md => ./abc/def.md + if (/^\w/.test(attr[1]) && !/^\w+:/.test(attr[1])) attr[1] = './' + attr[1] } }); } diff --git a/docs/api/page-scroll-to.md b/docs/api/page-scroll-to.md index bfa7400998e4eb8d24da33e0b03cdc2e8a05290a..5d89b6e997bd418bc2bb626ae754948cd8574968 100644 --- a/docs/api/page-scroll-to.md +++ b/docs/api/page-scroll-to.md @@ -4,7 +4,7 @@ 可以滚动到指定的scrollTop值处,也可以滚动到指定的目标元素处(通过css选择器selector), 仅支持一级 class -app-uvue下,只有页面的根元素为scroll-view时,本API才生效。[详见](../css/readme.md#pagescroll) +app-uvue下,只有页面的根元素为scroll-view时,本API才生效。[详见](../css/README.md#pagescroll) diff --git a/docs/css/readme.md b/docs/css/README.md similarity index 100% rename from docs/css/readme.md rename to docs/css/README.md diff --git a/docs/css/height.md b/docs/css/height.md index e6ca8ac00f719ac6a4af6aaf05b8159af4eebb20..caae99fadc3352faf8778b5cf56b2b97758cbfd6 100644 --- a/docs/css/height.md +++ b/docs/css/height.md @@ -7,8 +7,8 @@ -**注意** -> 属性值为长度 `` 时,App平台可以不设置单位,Web端必须设置单位,详情参考[长度单位](readme.md#length)。 +**注意** +> 属性值为长度 `` 时,App平台可以不设置单位,Web端必须设置单位,详情参考[长度单位](./README.md#length)。 diff --git a/docs/css/width.md b/docs/css/width.md index 81723750d4cd80d196998536baf5fbb8680ff040..acb5e24f62e764b5979126c750bb4dd32dc54a8f 100644 --- a/docs/css/width.md +++ b/docs/css/width.md @@ -7,8 +7,8 @@ -**注意** -> 属性值为长度 `` 时,App平台可以不设置单位,Web端必须设置单位,详情参考[长度单位](readme.md#length)。 +**注意** +> 属性值为长度 `` 时,App平台可以不设置单位,Web端必须设置单位,详情参考[长度单位](./README.md#length)。