From 8b53f9306ad4dafb7c30fa986275f927cdec566c Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Wed, 3 Jan 2024 15:42:29 +0800 Subject: [PATCH] chore: css README --- docs/.vuepress/markdown/add-base-to-md.js | 3 ++- docs/api/page-scroll-to.md | 2 +- docs/css/{readme.md => README.md} | 0 docs/css/height.md | 4 ++-- docs/css/width.md | 4 ++-- 5 files changed, 7 insertions(+), 6 deletions(-) rename docs/css/{readme.md => README.md} (100%) diff --git a/docs/.vuepress/markdown/add-base-to-md.js b/docs/.vuepress/markdown/add-base-to-md.js index f6839fd8..1f6923d6 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 bfa74009..5d89b6e9 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 e6ca8ac0..caae99fa 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 81723750..acb5e24f 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)。 -- GitLab