From cf80b56ce6005ce80137f7afe4d24a731254bf2e Mon Sep 17 00:00:00 2001 From: Danilo Bargen Date: Thu, 14 Jun 2018 10:22:26 +0200 Subject: [PATCH] Link to docs.rs This way we don't have to build custom docs anymore. --- .travis.yml | 12 ------------ Cargo.toml | 2 +- README.md | 11 ++++++----- 3 files changed, 7 insertions(+), 18 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2ef035b..8f11202 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,18 +7,6 @@ sudo: false script: - cargo build --verbose - cargo test --verbose - - rustdoc --test README.md -L target/debug -L target/debug/deps - - cargo doc -after_success: | - [ $TRAVIS_BRANCH = master ] && - [ $TRAVIS_PULL_REQUEST = false ] && - echo '' > target/doc/index.html && - pip install ghp-import --user $USER && - $HOME/.local/bin/ghp-import -n target/doc && - git push -qf https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages -env: - global: - secure: Te91dtDN8uv5OBxVuMy+nvQ5GtnLU9r6amS9p6IbblVXyzXgXPQdFfAND+GXXfZNnsjAyS2LnZL4NcNOR4JF63H0KxTTDIGXLSUAmc0C98UhqWWvv5bjz4mY0YKs9MwuTBX9P0LdTZjvRTd+yJ2PYH7ORGen+ZuOmlPNE7lpzrg= notifications: email: on_success: never diff --git a/Cargo.toml b/Cargo.toml index 95f8b2e..ae600f0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ authors = ["kwantam "] homepage = "https://github.com/unicode-rs/unicode-normalization" repository = "https://github.com/unicode-rs/unicode-normalization" -documentation = "https://unicode-rs.github.io/unicode-normalization" +documentation = "https://docs.rs/unicode-normalization/" license = "MIT/Apache-2.0" keywords = ["text", "unicode", "normalization", "decomposition", "recomposition"] diff --git a/README.md b/README.md index 28084a9..c472c44 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,12 @@ +# unicode-normalization + +[![Build Status](https://travis-ci.org/unicode-rs/unicode-normalization.svg)](https://travis-ci.org/unicode-rs/unicode-normalization) +[![Docs](https://docs.rs/unicode-normalization/badge.svg)](https://docs.rs/unicode-normalization/) + Unicode character composition and decomposition utilities as described in [Unicode Standard Annex #15](http://www.unicode.org/reports/tr15/). -[![Build Status](https://travis-ci.org/unicode-rs/unicode-normalization.svg)](https://travis-ci.org/unicode-rs/unicode-normalization) - -[Documentation](https://unicode-rs.github.io/unicode-normalization/unicode_normalization/index.html) - This crate requires Rust 1.21+. ```rust @@ -23,7 +24,7 @@ fn main() { } ``` -# crates.io +## crates.io You can use this package in your project by adding the following to your `Cargo.toml`: