Skip to content

Commit 553c3a3

Browse files
committed
Move docs to this repo and use travis
1 parent bd03d0f commit 553c3a3

File tree

5 files changed

+30
-2
lines changed

5 files changed

+30
-2
lines changed

.travis.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
language: rust
2+
addons:
3+
postgresql: 9.4
4+
script:
5+
- cargo test
6+
- cargo doc --no-deps
7+
after_success:
8+
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && ./.travis/update_docs.sh
9+
env:
10+
global:
11+
secure: aJ1Q6gIQZmuJnj03GCF9SbTyt9f4v+Z02gxvmV760TpgcuYOfHJD78Z1nxkZh1LGK1g7reeyYnWQ0UFSEPZBEPu/Wg+opUE73Vy4228sizowWTVMRn9mlmo3OgSQKPVvpYuvXbjjoWRh4/ynDDacIW8Lp/bFxlO4hl0DYvrHx44=

.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

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ authors = ["Steven Fackler <sfackler@gmail.com>"]
55
license = "MIT"
66
description = "Array support for rust-postgres"
77
repository = "https://github.com/sfackler/rust-postgres-array"
8+
documentation = "https://sfackler.github.io/rust-postgres-array/doc/postgres_array"
89

910
[features]
1011
default = ["uuid"]

README.md

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

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

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! Multi-dimensional arrays with per-dimension specifiable lower bounds
2-
#![doc(html_root_url="https://sfackler.github.io/doc")]
2+
#![doc(html_root_url="https://sfackler.github.io/rust-postgres-array/doc")]
33
#![feature(core, io)]
44
#![cfg_attr(test, feature(collections))]
55

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy