Skip to content

Commit 335cff9

Browse files
committed
Auto merge of rust-lang#474 - LegNeato:fix-docs, r=alexcrichton
Fix doc generation on travis. Documentation generation appears to be failing on master (https://travis-ci.org/rust-lang/libc/jobs/183483333): ``` Collecting ghp-import Downloading ghp-import-0.4.1.tar.gz Collecting travis Could not find a version that satisfies the requirement travis (from versions: ) No matching distribution found for travis ``` Basically `--user` doesn't appear to take an option, so `pip install ghp_import --user $USER` makes pip think the user is a package that needs to be installed (in this case `travis`). As there is no `travis` package, it dies.
2 parents 17ad72e + a41c074 commit 335cff9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ci/dox.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ cat ci/landing-page-footer.html >> target/doc/index.html
2727

2828
# If we're on travis, not a PR, and on the right branch, publish!
2929
if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ]; then
30-
pip install ghp-import --user $USER
30+
pip install ghp_import --install-option="--prefix=$HOME/.local"
3131
$HOME/.local/bin/ghp-import -n target/doc
3232
git push -qf https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
3333
fi

0 commit comments

Comments
 (0)