This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git
The following commit(s) were added to refs/heads/master by this push:
new 336bd719df5 [fix] restore build check (#3051)
336bd719df5 is described below
commit 336bd719df5f7185aa476a4f1b72cd157dc16094
Author: Mingyu Chen (Rayner) <[email protected]>
AuthorDate: Wed Nov 5 14:59:33 2025 +0800
[fix] restore build check (#3051)
---
.github/workflows/build-check.yml | 20 ++++++++++----------
config/markdown-bold-plugin.js | 21 +++++++++++++++------
docusaurus.config.js | 9 ++++++++-
3 files changed, 33 insertions(+), 17 deletions(-)
diff --git a/.github/workflows/build-check.yml
b/.github/workflows/build-check.yml
index ac609902a5c..ea168c11ef3 100644
--- a/.github/workflows/build-check.yml
+++ b/.github/workflows/build-check.yml
@@ -59,9 +59,9 @@ jobs:
python check_move.py $BASE_COMMIT
- # - name: Run Node.js dead link checker
- # run: |
- # node ./scripts/check_move.js `git rev-parse HEAD`
+ - name: Run Node.js dead link checker
+ run: |
+ node ./scripts/check_move.js `git rev-parse HEAD`
- name: Check exit code
run: |
@@ -70,10 +70,10 @@ jobs:
exit 1
fi
- # - name: Build
- # run: |
- # npm install -g yarn
- # yarn cache clean
- # export NODE_OPTIONS=--max-old-space-size=8192
- # yarn && yarn build
- # rm -rf build
+ - name: Build
+ run: |
+ npm install -g yarn
+ # yarn cache clean
+ export NODE_OPTIONS=--max-old-space-size=6144
+ yarn && yarn build --locale zh-CN
+ rm -rf build
diff --git a/config/markdown-bold-plugin.js b/config/markdown-bold-plugin.js
index d37af90f802..3dbe5e4f527 100644
--- a/config/markdown-bold-plugin.js
+++ b/config/markdown-bold-plugin.js
@@ -29,6 +29,9 @@ function getFirstBoldContent(str, startIdx = 0) {
*/
const plugin = options => {
const transformer = async (ast, file) => {
+ // Disable warnings in CI environment to avoid excessive log output
+ const isCI = process.env.CI === 'true' || process.env.GITHUB_ACTIONS
=== 'true';
+
visit(ast, 'text', (node, index, parent) => {
if (getFirstBoldContent(node.value)) {
const { start, end } = getFirstBoldContent(node.value);
@@ -56,15 +59,21 @@ const plugin = options => {
value: boldAfter,
});
}
- console.warn(
- `[WARNING] The bold syntax of "${value}" in "${file.path}"
is invalid and is being automatically optimized`,
- );
+ // Only show warnings in local development
+ if (!isCI) {
+ console.warn(
+ `[WARNING] The bold syntax of "${value}" in
"${file.path}" is invalid and is being automatically optimized`,
+ );
+ }
} else if (/(?<!\*)\*\*(?!\*)/.test(node.value)) {
// When there are multiple bold syntax in the text that does
not take effect, you need to modify it manually
// For example: aa**test1:**bb**test2:**cc will be rendered as
aa**test1:<strong>bb</strong>test2:**cc
- console.warn(
- `[WARNING] markdownBoldPlugin found a ** in the text node
(${node.value}) of the file ${file.path}, which may cause the document to not
render as expected`,
- );
+ // Only show warnings in local development
+ if (!isCI) {
+ console.warn(
+ `[WARNING] markdownBoldPlugin found a ** in the text
node (${node.value}) of the file ${file.path}, which may cause the document to
not render as expected`,
+ );
+ }
}
});
};
diff --git a/docusaurus.config.js b/docusaurus.config.js
index 70238b16bf2..13a420451ed 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -158,7 +158,14 @@ const config = {
showLastUpdateAuthor: false,
showLastUpdateTime: false,
remarkPlugins: [markdownBoldPlugin,
require('remark-math')],
- rehypePlugins: [require('rehype-katex')],
+ rehypePlugins: [
+ [
+ require('rehype-katex'),
+ {
+ strict: process.env.CI === 'true' ||
process.env.GITHUB_ACTIONS === 'true' ? false : 'warn',
+ }
+ ]
+ ]
},
blog: {
blogTitle: 'Apache Doris - Blog | Latest news and events ',
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]