diff --git a/.gitignore b/.gitignore index b25c15b81fa..da4e4fe375d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ *~ +book/ +src/ diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000000..c1aafe52591 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,19 @@ +language: rust +script: + - (cargo install mdbook --git https://github.com/azerupi/mdBook.git --force || true) + - mkdir src + - echo "[Introduction](introduction.md)\n" >> src/SUMMARY.md + - | + for f in $(ls text/* | sort) + do + echo "- [$(basename $f ".md")]($(basename $f))" >> src/SUMMARY.md + mv $f src + done + - cp README.md src/introduction.md + - mdbook build -d . +deploy: + provider: pages + skip_cleanup: true + github_token: $GITHUB_TOKEN + on: + branch: master