commit | 124a025ec8032be43f7f770da41f43ebfcaea8f2 | [log] [tgz] |
---|---|---|
author | YorkShen <shenyuancs@gmail.com> | Tue Oct 29 18:10:21 2019 +0800 |
committer | GitHub <noreply@github.com> | Tue Oct 29 18:10:21 2019 +0800 |
tree | a688bbbb5af9e9c18f79eebed4db7f57f6f15c6c | |
parent | 7ed8a36d81bf0557c1ec07b0dc85a4eb2f1e29bb [diff] |
Add publishing scripts. (#522) Committers can deploy the website by executing `scripts/publish.sh`.
This is the source code of Weex official website.
First you should install the Node.js, and install dependencies:
npm install
npm start
It will start a web server at http://localhost:8080
. The pages will be updated automatically once you save the corresponding source file.
npm run build
This will generate static files for publishing. The files are located in docs/.vuepress/dist/
scripts/publish.sh
Run the above script to deploy the website. This script will add all files in docs/.vuepress/dist/
to asf-site
branch, make a git commit and publish to the remote.
After executing, https://weex.apache.org/
will be updated automatically. If you're in China, you will need to wait several hours or one day before the CDN cache refreshing.
**The above scripts only works for committers, if you are not a committer, then you don't have the privilege to do the git push
*.
The documents are written in Markdown format located in the docs
folder. Feel free to send pull requests!
To write a blog, edit ‘docs/.vuepress/config.js’.
'/blog/': [['write-a-blog', 'Write a Blog'], ['your-file-name', 'Your article title']] '/zh/blog/': [['write-a-blog', '写一篇博客'], ['your-file-name', '你的文章标题']]