From 47659c60068473fb4ac519a46d000a472c1828d2 Mon Sep 17 00:00:00 2001 From: Magnus Hallin Date: Wed, 14 Jun 2017 09:20:05 +0200 Subject: [PATCH] Rely on docs.rs for documentation rather than hosting our own --- .travis.yml | 38 -------------------------------------- Cargo.toml | 5 ++++- 2 files changed, 4 insertions(+), 39 deletions(-) diff --git a/.travis.yml b/.travis.yml index eeda3fc6..2115fdc9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,14 +15,6 @@ matrix: allow_failures: - rust: nightly -addons: - apt: - packages: - - libcurl4-openssl-dev - - libelf-dev - - libdw-dev - - binutils-dev - env: global: - secure: "SsepHEYRmW9ee3RhxPpqGuPigZINFfA/yOwUJFseQt4t+Zs90r1xdl3Q8eDfPlnvBsL7Rd0QQrFDO7JUaimVLlgQkUnrl62o0CYzkodp+qtocyAHS00W6WTqi8Y6E6KBxPshCl03dRLaySUfx5TqTLTIHkJ0G6vDW35k7hRrA3221lRphs5rrpvAZ21pqsDsNLH3HVo792L6A0kOtBa3ocw1pgHLxnBbArIViu2htUuFvY/TgsmVbAdlow0efw/xkcJ/p0/r5q7igLek6Iqk8udfRc7CktvoiFQ2vUnhtNtQu/zYll3Q7OUx5d+w5lhbzz2QINmsezBEisH9k1haL7dMviLPp0pn4WZed60KovO0Iqfgjy1utTaKvJVfNWYsgkfU8c9a/z2rcZOKwXNKQW2ptBrtVjaB9dk7eMoyuFCDZwNtKqvG+ZKmvMpun+R8mmx+buOmN8Vlf5ygIoGxz3nbEtlLYGVTXHfdXXqRkFIwtiYVJEO7SLRKT9pbx1E++ARsi2+y8bXJT4e4z0osYMq9EsiFUpw3J2gcshrgseqkB7UgCZ3SXuitJnJNfDAU3a3nwwS/JiAunZMNnC4rKUBbl7WbTB4Cpw7EgVOlCqcyyzlkNl3xabLzTFzLOfSHLTVX5FmGNsD21vBoS5/8ejftx9wuV3rGHxuO3i3+A3k=" @@ -32,36 +24,6 @@ script: - cargo build --verbose --features iron-handlers - cargo test --verbose --features "iron-handlers expose-test-schema" -before_deploy: - - rm -rf target/package/ - - cargo package --verbose - - - | - if [ "$TRAVIS_BRANCH" = master -a "$TRAVIS_PULL_REQUEST" = false -a "$TRAVIS_RUST_VERSION" = stable ]; then - set -e - - cargo doc --features iron-handlers - - mkdir -p ~/.ssh - openssl aes-256-cbc -K $encrypted_7258158212d8_key -iv $encrypted_7258158212d8_iv -in _build/travis-juniper.enc -out ~/.ssh/id_rsa -d - chmod 600 ~/.ssh/id_rsa - - git clone --branch gh-pages git@github.com:mhallin/juniper deploy_docs - cd deploy_docs - - git config user.name 'Juniper Documentation Builder' - git config user.email 'nobody@example.com' - - rm -rf * - mv ../target/doc/* . - - echo '' > index.html - - git add -A * - git commit -qm 'Update documentation for Juniper' - git push -q origin gh-pages - fi - deploy: provider: releases api_key: diff --git a/Cargo.toml b/Cargo.toml index 5f824843..35b47f18 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,11 +5,14 @@ authors = ["Magnus Hallin "] description = "GraphQL server library" license = "BSD-2-Clause" documentation = "http://mhallin.github.io/juniper" -repository = "https://github.com/mhallin/juniper" +repository = "https://docs.rs/juniper" readme = "README.md" keywords = ["graphql", "server", "iron", "http", "web"] categories = ["web-programming"] +[package.metadata.docs.rs] +features = [ "iron-handlers" ] + [[bench]] name = "bench" harness = false