diff --git a/.travis.yml b/.travis.yml index f7de53b0e..57d94c229 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,9 +30,19 @@ after_success: | [ $TRAVIS_BRANCH = master ] && [ $TRAVIS_PULL_REQUEST = false ] && [ $TRAVIS_RUST_VERSION = stable ] && - gem install travis -v 1.8.8 --no-rdoc --no-ri && - travis login --org --no-interactive --github-token ${GH_TOKEN} && - travis restart --no-interactive -r slide-rs/specs-website + which mdbook || cargo install mdbook && + cd book && + mdbook build && + cd .. && + mkdir ../ghp && + cp -r book/book/* ../ghp/ && + echo "Checking out gh-pages" && + git checkout --orphan gh-pages && + rm -rf ./* && + cp -r ../ghp/* ./ && + git add -A && + git commit --quiet -m "Update page" && + git push -f https://${GH_TOKEN}@github.com/slide-rs/specs.git gh-pages notifications: webhooks: diff --git a/book/src/01_intro.md b/book/src/01_intro.md index 6b4c0006b..2237a8717 100644 --- a/book/src/01_intro.md +++ b/book/src/01_intro.md @@ -6,9 +6,14 @@ setting up, building, and structuring a game with an ECS. Specs is an ECS library that allows parallel system execution, with both low overhead and high flexibility, different storage types and a type-level -system data model. +system data model. It is mainly used for games and simulations, where it allows +to structure code using composition over inheritance. -You didn't fully understand what that sentence was about? The next section +Additional documentation is available on `docs.rs`: + +* [API documentation for Specs](https://docs.rs/specs) + +You don't yet know what an ECS is all about? The next section is for you! In case you already know what an ECS is, just skip it. ## What's an ECS?