Ver código fonte

Use the new and shiny 'cargo doc'

Simon Sapin 12 anos atrás
pai
commit
6318279688
4 arquivos alterados com 3 adições e 9 exclusões
  1. 0 2
      .gitignore
  2. 3 4
      .travis.yml
  3. 0 3
      doc.sh
  4. 0 0
      github.png

+ 0 - 2
.gitignore

@@ -1,4 +1,2 @@
 /target
 /Cargo.lock
-/doc/*
-!/doc/github.png

+ 3 - 4
.travis.yml

@@ -10,15 +10,14 @@ install:
 script:
   - cargo build
   - cargo test
-  - ./doc.sh
-  - ./doc.sh --test
+  - cargo doc
 
 after_success: |
   [ $TRAVIS_BRANCH = master ] &&
   [ $TRAVIS_PULL_REQUEST = false ] &&
-  echo '<meta http-equiv=refresh content=0;url=url/index.html>' > doc/index.html &&
+  echo '<meta http-equiv=refresh content=0;url=url/index.html>' > target/doc/index.html &&
   sudo pip install ghp-import &&
-  ghp-import -n doc &&
+  ghp-import -n target/doc &&
   git push -fq https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
 
 env:

+ 0 - 3
doc.sh

@@ -1,3 +0,0 @@
-#!/bin/sh
-LIB=$(echo target/liburl*)
-rustdoc src/lib.rs -L target/deps -L target --extern url=$LIB "$@"

+ 0 - 0
doc/github.png → github.png