From 890661bdf68d872803ed689616109a5b39d2f65c Mon Sep 17 00:00:00 2001 From: liruifengv Date: Thu, 18 Jan 2024 14:09:58 +0800 Subject: [PATCH 1/4] i18n(zh-cn): Update error-reference.mdx --- src/content/docs/zh-cn/reference/error-reference.mdx | 3 +++ .../errors/content-collection-type-mismatch-error.mdx | 4 ++-- .../reference/errors/mixed-content-data-collection-error.mdx | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/content/docs/zh-cn/reference/error-reference.mdx b/src/content/docs/zh-cn/reference/error-reference.mdx index 72cc6eb4357df..d2307cca14e4f 100644 --- a/src/content/docs/zh-cn/reference/error-reference.mdx +++ b/src/content/docs/zh-cn/reference/error-reference.mdx @@ -59,6 +59,9 @@ githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/ - [**FailedToLoadModuleSSR**](/zh-cn/reference/errors/failed-to-load-module-ssr/)
Could not import file. - [**InvalidGlob**](/zh-cn/reference/errors/invalid-glob/)
Invalid glob pattern. - [**FailedToFindPageMapSSR**](/zh-cn/reference/errors/failed-to-find-page-map-ssr/)
Astro couldn't find the correct page to render +- [**MissingLocale**](/zh-cn/reference/errors/missing-locale/)
The provided locale does not exist. +- [**CantRenderPage**](/zh-cn/reference/errors/cant-render-page/)
Astro can't render the route. +- [**UnhandledRejection**](/zh-cn/reference/errors/unhandled-rejection/)
Unhandled rejection ## CSS 错误 - [**UnknownCSSError**](/zh-cn/reference/errors/unknown-csserror/)
Unknown CSS Error. diff --git a/src/content/docs/zh-cn/reference/errors/content-collection-type-mismatch-error.mdx b/src/content/docs/zh-cn/reference/errors/content-collection-type-mismatch-error.mdx index eb4bc019f4dff..0d60224fc2d3e 100644 --- a/src/content/docs/zh-cn/reference/errors/content-collection-type-mismatch-error.mdx +++ b/src/content/docs/zh-cn/reference/errors/content-collection-type-mismatch-error.mdx @@ -3,8 +3,8 @@ title: Collection contains entries of a different type. i18nReady: true githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts --- - -> `COLLECTION_NAME` 包含 `ACTUAL_TYPE` 类型的条目,但却配置为 `EXPECTED_TYPE` 集合。 + +> **ContentCollectionTypeMismatchError**:集合 COLLECTION 包含了 EXPECTED_TYPE 类型的条目,但是它被配置为 ACTUAL_TYPE 类型的集合。 ## 哪里发生了错误? diff --git a/src/content/docs/zh-cn/reference/errors/mixed-content-data-collection-error.mdx b/src/content/docs/zh-cn/reference/errors/mixed-content-data-collection-error.mdx index 9d097e6c88acc..55477a6fc2d08 100644 --- a/src/content/docs/zh-cn/reference/errors/mixed-content-data-collection-error.mdx +++ b/src/content/docs/zh-cn/reference/errors/mixed-content-data-collection-error.mdx @@ -4,7 +4,7 @@ i18nReady: true githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts --- -> `COLLECTION_NAME` 同时包含了内容和数据条目。所有条目必须是相同的类型。 +> **MixedContentDataCollectionError**: **COLLECTION_NAME** 同时包含了内容和数据条目。所有条目必须是相同的类型。 ## 哪里发生了错误? From 322521d89aa994094fa8027dcdc44d020fe81fce Mon Sep 17 00:00:00 2001 From: liruifengv Date: Thu, 18 Jan 2024 14:11:24 +0800 Subject: [PATCH 2/4] format --- .../reference/errors/content-collection-type-mismatch-error.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/zh-cn/reference/errors/content-collection-type-mismatch-error.mdx b/src/content/docs/zh-cn/reference/errors/content-collection-type-mismatch-error.mdx index 0d60224fc2d3e..1e537ac093c9a 100644 --- a/src/content/docs/zh-cn/reference/errors/content-collection-type-mismatch-error.mdx +++ b/src/content/docs/zh-cn/reference/errors/content-collection-type-mismatch-error.mdx @@ -3,7 +3,7 @@ title: Collection contains entries of a different type. i18nReady: true githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts --- - + > **ContentCollectionTypeMismatchError**:集合 COLLECTION 包含了 EXPECTED_TYPE 类型的条目,但是它被配置为 ACTUAL_TYPE 类型的集合。 ## 哪里发生了错误? From 065ef84901fdf9a290b9b289dcb81feda5537c17 Mon Sep 17 00:00:00 2001 From: liruifengv Date: Thu, 18 Jan 2024 15:58:18 +0800 Subject: [PATCH 3/4] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E5=85=AC=E4=BC=97=E5=8F=B7=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/styles/wechat.css | 72 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 src/styles/wechat.css diff --git a/src/styles/wechat.css b/src/styles/wechat.css new file mode 100644 index 0000000000000..10879efc9db32 --- /dev/null +++ b/src/styles/wechat.css @@ -0,0 +1,72 @@ +/* + 按Ctrl+F可格式化 +*/ +/* 一级标题样式 */ +h1 { + font-size: 24px; +} +/* 二级标题样式 */ +h2 { + text-align: left; + background: none; + color: #000; + font-size: 20px; + margin: 0; + margin-top: 16px; +} +/* 三级标题样式 */ +h3 { + font-size: 18px; + margin-top: 12px; +} +/* 四级标题样式 */ +h4 { + font-size: 16px; + margin-top: 12px; +} +/* 图片样式 */ +image { +} +/* 引用样式 */ +blockquote { +} +/* 引用段落样式 */ +blockquote_p { +} +/* 段落样式 */ +p { + line-height: 1.75; + margin-top: 12px; + margin-bottom: 16px; +} +/* 分割线样式 */ +hr { +} +/* 行内代码样式 */ +codespan { + color: #108ee9; + background: #ddd; +} +/* 粗体样式 */ +strong { +} +/* 链接样式 */ +link { + color: #108ee9; +} +/* 微信链接样式 */ +wx_link { +} +/* 有序列表样式 */ +ol { +} +/* 无序列表样式 */ +ul { +} +/* 列表项样式 */ +li { +} +/* 代码块样式 */ +code { + font-size: 12px; +} From 772dad1fc637e14d0081ecad96e8f383e6aa4b19 Mon Sep 17 00:00:00 2001 From: liruifengv Date: Fri, 19 Jan 2024 22:27:43 +0800 Subject: [PATCH 4/4] Delete src/styles/wechat.css --- src/styles/wechat.css | 72 ------------------------------------------- 1 file changed, 72 deletions(-) delete mode 100644 src/styles/wechat.css diff --git a/src/styles/wechat.css b/src/styles/wechat.css deleted file mode 100644 index 10879efc9db32..0000000000000 --- a/src/styles/wechat.css +++ /dev/null @@ -1,72 +0,0 @@ -/* - 按Ctrl+F可格式化 -*/ -/* 一级标题样式 */ -h1 { - font-size: 24px; -} -/* 二级标题样式 */ -h2 { - text-align: left; - background: none; - color: #000; - font-size: 20px; - margin: 0; - margin-top: 16px; -} -/* 三级标题样式 */ -h3 { - font-size: 18px; - margin-top: 12px; -} -/* 四级标题样式 */ -h4 { - font-size: 16px; - margin-top: 12px; -} -/* 图片样式 */ -image { -} -/* 引用样式 */ -blockquote { -} -/* 引用段落样式 */ -blockquote_p { -} -/* 段落样式 */ -p { - line-height: 1.75; - margin-top: 12px; - margin-bottom: 16px; -} -/* 分割线样式 */ -hr { -} -/* 行内代码样式 */ -codespan { - color: #108ee9; - background: #ddd; -} -/* 粗体样式 */ -strong { -} -/* 链接样式 */ -link { - color: #108ee9; -} -/* 微信链接样式 */ -wx_link { -} -/* 有序列表样式 */ -ol { -} -/* 无序列表样式 */ -ul { -} -/* 列表项样式 */ -li { -} -/* 代码块样式 */ -code { - font-size: 12px; -}