Update link to documentation.
This commit is contained in:
parent
84386d826d
commit
888967ab5d
|
@ -1,4 +1,5 @@
|
|||
/target
|
||||
/Cargo.lock
|
||||
/doc
|
||||
/gh-pages
|
||||
|
||||
|
|
14
Cargo.toml
14
Cargo.toml
|
@ -4,6 +4,20 @@ name = "cpython"
|
|||
version = "0.0.1"
|
||||
description = "Bindings to Python 2.7"
|
||||
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]
|
||||
python27-sys="*"
|
||||
|
|
|
@ -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
|
||||
|
|
@ -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.
|
||||
|
||||
* [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)
|
||||
|
||||
---
|
||||
|
|
Loading…
Reference in New Issue