Publish RFCs as mdbook to GitHub pages.

Spoke with someone at Rust Belt Rust who mentioned this idea (@mre 👋)
and decided to take a stab at it. I originally implemented this upstream
in the Rust source repository (by adding a git submodule and dynamically
generating the contents of the book there). But then then I spoke with
@steveklabnik and agreed that doing it in CI in this repository would be
a lot easier.
This commit is contained in:
Corey Farwell 2017-10-27 16:48:50 -04:00
parent d046f391fa
commit e6afcba890
2 changed files with 21 additions and 0 deletions

2
.gitignore vendored
View File

@ -1 +1,3 @@
*~
book/
src/

19
.travis.yml Normal file
View File

@ -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