commit | 39232a5dbcf017d7340aba9dd7a8e3ba05bc7100 | [log] [tgz] |
---|---|---|
author | Jay Chung <zhongjiajie955@gmail.com> | Mon Jun 16 00:21:50 2025 +0800 |
committer | GitHub <noreply@github.com> | Mon Jun 16 00:21:50 2025 +0800 |
tree | ebd5fb6b80a14d64a80a9c8e6bbabf47ef72c7dc | |
parent | a9c95171d19985dde584973069ca2e9785ab5f0b [diff] |
ci: fix dl failed (#983) do not know the root cause, but `https://mp.weixin.qq.com` will raise an error in our pipeline, so maybe we should directly ignore them, because - if the link work, everything works fine and does not need to change - if the link do not work, which mean article is delete and can not revert in wechat ```log 2025-06-14T01:14:07.0668795Z /usr/local/lib/node_modules/markdown-link-check/node_modules/async/dist/async.js:325 2025-06-14T01:14:07.0669750Z if (fn === null) throw new Error("Callback was already called."); 2025-06-14T01:14:07.0670643Z ^ 2025-06-14T01:14:07.0670896Z 2025-06-14T01:14:07.0671053Z Error: Callback was already called. 2025-06-14T01:14:07.0672111Z at /usr/local/lib/node_modules/markdown-link-check/node_modules/async/dist/async.js:325:36 2025-06-14T01:14:07.0673145Z at /usr/local/lib/node_modules/markdown-link-check/node_modules/async/dist/async.js:249:17 2025-06-14T01:14:07.0674040Z at /usr/local/lib/node_modules/markdown-link-check/index.js:212:13 2025-06-14T01:14:07.0675247Z at /usr/local/lib/node_modules/markdown-link-check/node_modules/link-check/lib/proto/http.js:119:21 2025-06-14T01:14:07.0676395Z at done (/usr/local/lib/node_modules/markdown-link-check/node_modules/needle/lib/needle.js:474:14) 2025-06-14T01:14:07.0677831Z at PassThrough.<anonymous> (/usr/local/lib/node_modules/markdown-link-check/node_modules/needle/lib/needle.js:734:9) 2025-06-14T01:14:07.0678801Z at PassThrough.emit (node:events:536:35) 2025-06-14T01:14:07.0679383Z at endReadableNT (node:internal/streams/readable:1698:12) 2025-06-14T01:14:07.0680201Z at process.processTicksAndRejections (node:internal/process/task_queues:82:21) ```
This project keeps all sources used for building up DolphinScheduler's official website which is served at https://dolphinscheduler.apache.org/.
yarn
in the root directory to install the dependencies.export PROTOCOL_MODE=ssh
tells Git clone resource via SSH protocol instead of HTTPS protocol 2.2. Run ./scripts/prepare_docs.sh
prepare all related resources, for more information you could see how prepare script workyarn generate
in the root directory to format and prepare the data.yarn dev
in the root directory to start a local server, you will see the website in ‘http://localhost:3000’.Note: if you clone the code in Windows, not Mac or Linux. Please read the details below. If you execute the commands like the two steps above, you will get the exception "UnhandledPromiseRejectionWarning: Error: EPERM: operation not permitted, symlink '2.0.3' -> 'latest'". If you get the exception "Can't resolve 'antd' in xxx",you can run `yarn add antd` and `yarn install`. Because the `./scripts/prepare_docs.sh` command requires a Linux environment, if you are on a Windows system, you can use WSL to complete this step. When you encounter this problem. You can run the two steps in cmd.exe as an administrator on your Windows system.
yarn build
to build source code, this will automatically generate a directory called build
, wait for the execution to complete and into build
directory.python -m SimpleHTTPServer 8000
, when your python version is 3 use :python3 -m http.server 8000
instead.If you have higher version of node installed, you may consider nvm
to allow different versions of node
coexisting on your machine.
nvm install v18.12.1
to install node v18nvm use v18.12.1
to switch the working environment to node v18Then you are all set to run and build the website. Follow the build instruction above for the details.
git add .
to commit all the changes.*.md
Make sure each .md starts with the following texts:
--- title: title keywords: keywords1,keywords2, keywords3 description: some description ---
Best Regards.
Thanks for reading :)