I did it by follwing this link: Automatically update github pages with travis example
Step 1: Create a repo on github.com for the wiki.(NOT a fork)
Copy everything to the localized wiki, especially these files:
Because travis-ci.org with execute
./gradlew asciidoctor and
./deploy_ghpages.sh after you push your commits.
If you have ever forked the official wiki, I suggest you rename it to
official_wiki. Then you can still contribute to official wiki with that fork.
Step 2: Checkout a new branch named
This is for the github pages, will be automatically updated by travis.
Step 3: Go travis-ci.org and sign in with your github account
Sign in with the same github account, so you can turn on the switch for your wiki repo.
Step 4: Setup GH_TOKEN varibale
You need to generate a
GH_TOKEN in github.com, and set up a Environment Variables in travis-ci.org .
This varible will be used in
Step 5: Give
deploy_ghpages.sh premission to be excuted.
If you don’t do this, travis-ci.org may fail, due to no permission.
git update-index --chmod=+x deploy_ghpages.sh
git update-index --chmod=+x gradlew
Step 6: Done
After you have done all above, just commit and push to your wiki repo. You can see the result after a few mintues.
This will guide you to edit the wiki with atom editor.