| commit | 519841d5394dd962255680b8a8c5117a2ee798b0 | [log] [tgz] |
|---|---|---|
| author | Jiajie Zhong <zhongjiajie955@hotmail.com> | Sat Apr 02 22:28:01 2022 +0800 |
| committer | GitHub <noreply@github.com> | Sat Apr 02 22:28:01 2022 +0800 |
| tree | 81fdffc69e381a125fada6d0631bbf718da27d81 | |
| parent | 29a0a125c383d508889ae8dd058f4183010debd7 [diff] |
[ci] Add schedule deploy and revert prohibit docs change (#760)
This project keeps all sources used for building up DolphinScheduler official website which is served at https://dolphinscheduler.apache.org/.
DolphinScheduler website is powered by docsite.
Please also make sure your node version is 10+, version lower than 10.x is not supported yet.
Our latest documents are in DolphinScheduler main repository directory docs, and the history documents is in branch history-docs in this repository. In this case, you have to collect them from somewhere to current working path before you compile them to HTML format.
Of course, you could collect all content manually, but we already provider convenience script to do that, all you have to do is run a single command:
./scripts/prepare_docs.sh
It would do all prepare things for you.
Note: When you failed to run the command and see some log like “unable to access” in your terminal, you can set and environment variable
export DEV_MODE=trueand then run command./scripts/prepare_docs.shagain. After setting the variable will clone source code in SSH instead of HTTPS, it will stable and fast in some cases.
npm install in the root directory to install the dependencies.npm run start in the root directory to start a local server, you will see the website in ‘http://localhost:8080’.Note: if you clone the code in Windows, not Mac. 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'". When meeting this problem. You can run two steps in the cmd.exe as an ADMINISTRATOR MEMBER.
npm run build to build source code into dist 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 v10.23.1 to install node v10nvm use v10.23.1 to switch the working environment to node v10Then 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.*.mdMake sure each .md starts with the following texts:
--- title: title keywords: keywords1,keywords2, keywords3 description: some description ---
Best Regards.
Thanks for reading :)