Skip to content

Commit

Permalink
Publish RFCs as mdbook to GitHub pages.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
frewsxcv committed Oct 28, 2017
1 parent d046f39 commit e6afcba
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
*~
book/
src/
19 changes: 19 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e6afcba

Please sign in to comment.