Update link to documentation.

This commit is contained in:
Daniel Grunwald 2015-04-19 07:50:50 +02:00
parent 84386d826d
commit 888967ab5d
4 changed files with 52 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
/target /target
/Cargo.lock /Cargo.lock
/doc /doc
/gh-pages

View File

@ -4,6 +4,20 @@ name = "cpython"
version = "0.0.1" version = "0.0.1"
description = "Bindings to Python 2.7" description = "Bindings to Python 2.7"
authors = ["Daniel Grunwald <daniel@danielgrunwald.de>"] authors = ["Daniel Grunwald <daniel@danielgrunwald.de>"]
readme = "README.md"
keywords = [
"python",
"cpython",
"libpython27",
]
homepage = "https://github.com/dgrunwald/rust-cpython"
repository = "https://github.com/dgrunwald/rust-cpython.git"
documentation = "http://dgrunwald.github.io/rust-cpython/doc/cpython/"
license = "MIT"
exclude = [
".gitignore",
".travis.yml",
]
[dependencies] [dependencies]
python27-sys="*" python27-sys="*"

36
Makefile Normal file
View File

@ -0,0 +1,36 @@
.PHONY: default build test doc extensions clean
default: test extensions
build:
cargo build
test: build
cargo test
doc: build
cargo doc --no-deps
extensions: build
make -C extensions/
clean:
rm -r target
make -C extensions/ clean
gh-pages:
git checkout --branch gh-pages git@github.com:dgrunwald/rust-cpython.git
.PHONY: gh-pages-doc
gh-pages-doc: doc | gh-pages
cd gh-pages && git pull
rm -r gh-pages/doc
cp -r target/doc gh-pages/
rm gh-pages/doc/.lock
cd gh-pages && git add .
cd gh-pages && git commit -m "Update documentation"
publish: default gh-pages-doc
cargo publish
cd gh-pages && git push

View File

@ -3,7 +3,7 @@ rust-cpython [![Build Status](https://travis-ci.org/dgrunwald/rust-cpython.svg?b
[Rust](http://www.rust-lang.org/) bindings for the [python](https://www.python.org/) interpreter. [Rust](http://www.rust-lang.org/) bindings for the [python](https://www.python.org/) interpreter.
* [Documentation](http://www.rust-ci.org/dgrunwald/rust-cpython/doc/cpython/) * [Documentation](http://dgrunwald.github.io/rust-cpython/doc/cpython/)
* Cargo package: [cpython](https://crates.io/crates/cpython) * Cargo package: [cpython](https://crates.io/crates/cpython)
--- ---