mirror of
https://github.com/rust-lang-cn/book-cn.git
synced 2025-01-23 07:20:20 +08:00
Remove Makefile
mdbook supports testing now, so there's no need.
This commit is contained in:
parent
c7a0e35b95
commit
ec0d93fc4c
@ -8,7 +8,8 @@ rust:
|
||||
before_script:
|
||||
- cargo install mdbook
|
||||
script:
|
||||
- PATH=$PATH:/home/travis/.cargo/bin make all
|
||||
- PATH=$PATH:/home/travis/.cargo/bin mdbook test
|
||||
- PATH=$PATH:/home/travis/.cargo/bin mdbook build
|
||||
after_success:
|
||||
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && bash deploy.sh
|
||||
env:
|
||||
|
7
Makefile
7
Makefile
@ -1,7 +0,0 @@
|
||||
default:
|
||||
mdbook build
|
||||
|
||||
test:
|
||||
find . -name "*.md" | xargs -I{} rustdoc --test {}
|
||||
|
||||
all: default test
|
10
README.md
10
README.md
@ -26,7 +26,7 @@ $ cargo install mdbook
|
||||
To build the book, type:
|
||||
|
||||
```bash
|
||||
$ make
|
||||
$ mdbook build
|
||||
```
|
||||
|
||||
The output will be in the `book` subdirectory. To check it out, open it in
|
||||
@ -39,13 +39,7 @@ $ firefox book/index.html
|
||||
To run the tests:
|
||||
|
||||
```bash
|
||||
$ make test
|
||||
```
|
||||
|
||||
To do both:
|
||||
|
||||
```bash
|
||||
$ make all
|
||||
$ mdbook test
|
||||
```
|
||||
|
||||
## Contributing
|
||||
|
Loading…
Reference in New Issue
Block a user