aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-08-03 21:30:30 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-08-03 21:36:44 -0700
commit934e093047ae15432fcc772d4e01fdf5fd56d2fb (patch)
treef10cb4cbc9bc24d90f6311e2fbbcff12872f9139
parentb5e110caf4d44263d01cd0edd16e814403b3b3a6 (diff)
downloadmilf-rs-934e093047ae15432fcc772d4e01fdf5fd56d2fb.tar.gz
milf-rs-934e093047ae15432fcc772d4e01fdf5fd56d2fb.zip
Put documentation on github
-rw-r--r--.travis.yml18
-rw-r--r--Cargo.toml8
-rw-r--r--README.md14
-rw-r--r--src/lib.rs (renamed from src/toml.rs)0
4 files changed, 28 insertions, 12 deletions
diff --git a/.travis.yml b/.travis.yml
index b92cce0..68735e2 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,9 +1,15 @@
install:
- - curl http://www.rust-lang.org/rustup.sh | sudo sh -
+- curl http://www.rust-lang.org/rustup.sh | sudo sh -
script:
- - make
- - make check
- - cargo build --verbose
- - cargo test --verbose
+- cargo build --verbose
+- cargo test --verbose
+- rustdoc --test src/lib.rs -L target --crate-name toml
+- cargo doc
+after_success: ! '[ $TRAVIS_BRANCH = master ] && [ $TRAVIS_PULL_REQUEST = false ]
+ && echo ''<meta http-equiv=refresh content=0;url=toml/index.html>'' > target/doc/index.html
+ && sudo pip install ghp-import && ghp-import -n target/doc && git push -fq https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
+ gh-pages '
env:
- - LD_LIBRARY_PATH=/usr/local/lib
+ global:
+ - LD_LIBRARY_PATH: /usr/local/lib
+ - secure: bK8RmAtQcJvxXZFe+WqfRwuQqq1h3PXCFtrd73m4PWysdMEhtWb+ZKugPw8ykT3YVVLqbLnzH2Z8iM0RkF57aJvk7H1P4Syw4h2pPvvgP91ayzHbUnWwxkkJJ+oQ8lDJtcDHQ4BQhKMpTqY4tbaG6KeSwSdqDRCJuzHbZJzR0Eg=
diff --git a/Cargo.toml b/Cargo.toml
index 577a45d..fc6861b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,9 +1,5 @@
-[project]
+[package]
name = "toml"
version = "0.1.0"
-authors = ["alex@crichton.co"]
-
-[[lib]]
-
-name = "toml"
+authors = ["Alex Crichton <alex@alexcrichton.com>"]
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..86043c3
--- /dev/null
+++ b/README.md
@@ -0,0 +1,14 @@
+# toml-rs
+
+[![Build Status](https://travis-ci.org/alexcrichton/toml-rs.svg?branch=master)](https://travis-ci.org/alexcrichton/toml-rs)
+
+[Documentation](http://alexcrichton.com/toml-rs/toml/index.html)
+
+A TOML decoder and encoder for Rust.
+
+```toml
+# Cargo.toml
+[dependencies.toml]
+git = "https://github.com/alexcrichton/toml-rs"
+```
+
diff --git a/src/toml.rs b/src/lib.rs
index d768b7c..d768b7c 100644
--- a/src/toml.rs
+++ b/src/lib.rs