Skip to content

Commit e6afcba

Browse files
committed
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.
1 parent d046f39 commit e6afcba

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
*~
2+
book/
3+
src/

.travis.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
language: rust
2+
script:
3+
- (cargo install mdbook --git https://github.com/azerupi/mdBook.git --force || true)
4+
- mkdir src
5+
- echo "[Introduction](introduction.md)\n" >> src/SUMMARY.md
6+
- |
7+
for f in $(ls text/* | sort)
8+
do
9+
echo "- [$(basename $f ".md")]($(basename $f))" >> src/SUMMARY.md
10+
mv $f src
11+
done
12+
- cp README.md src/introduction.md
13+
- mdbook build -d .
14+
deploy:
15+
provider: pages
16+
skip_cleanup: true
17+
github_token: $GITHUB_TOKEN
18+
on:
19+
branch: master

0 commit comments

Comments
 (0)