Skip to content

Commit 28416a7

Browse files
committed
Move docs to this repo and build with travis
1 parent cf15bf1 commit 28416a7

File tree

4 files changed

+27
-2
lines changed

4 files changed

+27
-2
lines changed

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
language: rust
2+
script:
3+
- cargo test
4+
- cargo doc --no-deps
5+
after_success:
6+
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && ./.travis/update_docs.sh
7+
env:
8+
global:
9+
secure: o0Ln3cEpSGR2tBcORZ1CadW+EjUJsn/gGrsLLF1vfWkVoGvS4y40Bpvn4PwzQCMtqqaIwPHrYQ6fMbmXjfjhYN1QHEC7voaGypFtK+YQxRy3kXYcpShzwvkFjBDUfw5HdWD/VX0r9qDJVr8WPc5/vVQedwUbbfdV435JWo3wNeU=

.travis/update_docs.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
set -o errexit -o nounset
4+
5+
git clone --branch gh-pages "https://$GH_TOKEN@github.com/${TRAVIS_REPO_SLUG}.git" deploy_docs
6+
cd deploy_docs
7+
8+
git config user.name "Steven Fackler"
9+
git config user.email "sfackler@gmail.com"
10+
11+
rm -rf doc
12+
mv ../target/doc .
13+
14+
git add -A .
15+
git commit -m "rebuild pages at ${TRAVIS_COMMIT}"
16+
git push

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# rust-postgres-range
22
Support for PostgreSQL ranges in [rust-postgres](https://github.com/sfackler/rust-postgres).
33

4-
Documentation is available at https://sfackler.github.io/doc/postgres_range.
4+
Documentation is available at https://sfackler.github.io/rust-postgres-range/doc/postgres_range.

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! Types dealing with ranges of values
2-
#![doc(html_root_url="https://sfackler.github.io/doc")]
2+
#![doc(html_root_url="https://sfackler.github.io/rust-postgres-range/doc")]
33
#![cfg_attr(test, feature(core))]
44
#![feature(io)]
55

0 commit comments

Comments
 (0)