mirror of
https://github.com/rust-lang-nursery/rust-cookbook
synced 2025-02-16 20:28:27 +00:00
fixed links and CI auto-deploy after move to rust-lang-nursery
- fixed stargazers example broken due to repo move - fixed edit functionality broken due to repo move
This commit is contained in:
parent
f7d4e1acfe
commit
6cd55fe84b
7 changed files with 17 additions and 17 deletions
|
@ -13,7 +13,7 @@ contribute to. Help is welcome.
|
||||||
To start, clone the cookbook from git and navigate to that directory:
|
To start, clone the cookbook from git and navigate to that directory:
|
||||||
|
|
||||||
```
|
```
|
||||||
git clone https://github.com/brson/rust-cookbook.git
|
git clone https://github.com/rust-lang-nursery/rust-cookbook.git
|
||||||
cd rust-cookbook
|
cd rust-cookbook
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -82,9 +82,9 @@ Contribution will be open to a broader set of crates in the future.
|
||||||
For more about which crates are represented in the cookbook, see ["a
|
For more about which crates are represented in the cookbook, see ["a
|
||||||
note about crate representation"][which-crates] in the cookbook.
|
note about crate representation"][which-crates] in the cookbook.
|
||||||
|
|
||||||
[example]: https://github.com/brson/rust-cookbook/issues?q=is%3Aissue+is%3Aopen+label%3Aexample
|
[example]: https://github.com/rust-lang-nursery/rust-cookbook/issues?q=is%3Aissue+is%3Aopen+label%3Aexample
|
||||||
[tracking issue]: https://github.com/brson/rust-cookbook/issues?q=is%3Aissue+is%3Aopen+label%3A%22tracking+issue%22
|
[tracking issue]: https://github.com/rust-lang-nursery/rust-cookbook/issues?q=is%3Aissue+is%3Aopen+label%3A%22tracking+issue%22
|
||||||
[which-crates]: https://brson.github.io/rust-cookbook/about.html#a-note-about-crate-representation
|
[which-crates]: https://rust-lang-nursery.github.io/rust-cookbook/about.html#a-note-about-crate-representation
|
||||||
[libz blitz]: https://internals.rust-lang.org/t/rust-libz-blitz/5184
|
[libz blitz]: https://internals.rust-lang.org/t/rust-libz-blitz/5184
|
||||||
|
|
||||||
## Adding an example
|
## Adding an example
|
||||||
|
@ -100,7 +100,7 @@ Adding an example involves:
|
||||||
|
|
||||||
The finished commit will look something like [this one].
|
The finished commit will look something like [this one].
|
||||||
|
|
||||||
[this one]: https://github.com/brson/rust-cookbook/commit/e698443f2af08d3106d953c68c1977eba3c3526c
|
[this one]: https://github.com/rust-lang-nursery/rust-cookbook/commit/e698443f2af08d3106d953c68c1977eba3c3526c
|
||||||
|
|
||||||
Examples are presently organized in three ways:
|
Examples are presently organized in three ways:
|
||||||
|
|
||||||
|
@ -121,7 +121,7 @@ but since the cookbook is so new, quite possibly not. Ask on thread.
|
||||||
For most steps you can simply follow the lead of existing examples.
|
For most steps you can simply follow the lead of existing examples.
|
||||||
The art comes in writing effective examples.
|
The art comes in writing effective examples.
|
||||||
|
|
||||||
["how to read this book"]: https://brson.github.io/rust-cookbook/about.html#how-to-read-this-book
|
["how to read this book"]: https://rust-lang-nursery.github.io/rust-cookbook/about.html#how-to-read-this-book
|
||||||
|
|
||||||
## Example guidelines
|
## Example guidelines
|
||||||
|
|
||||||
|
@ -162,7 +162,7 @@ supports the use case and might not be obvious to someone new. Say the
|
||||||
minimum possible about aspects that don't directly support the use
|
minimum possible about aspects that don't directly support the use
|
||||||
case. See ["basics"] for examples.
|
case. See ["basics"] for examples.
|
||||||
|
|
||||||
["basics"]: https://brson.github.io/rust-cookbook/basics.html
|
["basics"]: https://rust-lang-nursery.github.io/rust-cookbook/basics.html
|
||||||
|
|
||||||
Hyperlink all references to APIs, either on doc.rust-lang.org/std or
|
Hyperlink all references to APIs, either on doc.rust-lang.org/std or
|
||||||
docs.rs, and style them as `code`.
|
docs.rs, and style them as `code`.
|
||||||
|
@ -171,4 +171,4 @@ Finally, this book is intended to also demonstrate the integration
|
||||||
of crates that work well together. Super bonus points for examples
|
of crates that work well together. Super bonus points for examples
|
||||||
that feature multiple crates sensibly.
|
that feature multiple crates sensibly.
|
||||||
|
|
||||||
[errors]: https://brson.github.io/rust-cookbook/about.html#a-note-about-error-handling
|
[errors]: https://rust-lang-nursery.github.io/rust-cookbook/about.html#a-note-about-error-handling
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# A Rust Cookbook   [![Build Status]][travis]
|
# A Rust Cookbook   [![Build Status]][travis]
|
||||||
|
|
||||||
[Build Status]: https://api.travis-ci.org/brson/rust-cookbook.svg?branch=master
|
[Build Status]: https://api.travis-ci.org/rust-lang-nursery/rust-cookbook.svg?branch=master
|
||||||
[travis]: https://travis-ci.org/brson/rust-cookbook
|
[travis]: https://travis-ci.org/rust-lang-nursery/rust-cookbook
|
||||||
|
|
||||||
**[Read it here]**.
|
**[Read it here]**.
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ using the crates of the Rust ecosystem.
|
||||||
These examples are complete, and suitable for copying directly into
|
These examples are complete, and suitable for copying directly into
|
||||||
new cargo projects. They are tested and guaranteed to work.
|
new cargo projects. They are tested and guaranteed to work.
|
||||||
|
|
||||||
[Read it here]: https://brson.github.io/rust-cookbook
|
[Read it here]: https://rust-lang-nursery.github.io/rust-cookbook
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ community. It needs and welcomes help.
|
||||||
|
|
||||||
For details see [CONTRIBUTING.md] on GitHub.
|
For details see [CONTRIBUTING.md] on GitHub.
|
||||||
|
|
||||||
[CONTRIBUTING.md]: https://github.com/brson/rust-cookbook/blob/master/CONTRIBUTING.md
|
[CONTRIBUTING.md]: https://github.com/rust-lang-nursery/rust-cookbook/blob/master/CONTRIBUTING.md
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@ echo "Committing book directory to gh-pages branch"
|
||||||
REV=$(git rev-parse --short HEAD)
|
REV=$(git rev-parse --short HEAD)
|
||||||
cd book
|
cd book
|
||||||
git init
|
git init
|
||||||
git remote add upstream "https://$GH_TOKEN@github.com/brson/rust-cookbook.git"
|
git remote add upstream "https://$GH_TOKEN@github.com/rust-lang-nursery/rust-cookbook.git"
|
||||||
git config user.name "Rust Cookbook"
|
git config user.name "Rust Cookbook"
|
||||||
git config user.email "cookbook@rust-lang.org"
|
git config user.email "cookbook@rust-lang.org"
|
||||||
git add -A .
|
git add -A .
|
||||||
|
|
|
@ -14,7 +14,7 @@ contribute to, and an easy to way get involved with the Rust
|
||||||
community. It needs and welcomes help. For details see
|
community. It needs and welcomes help. For details see
|
||||||
[CONTRIBUTING.md].
|
[CONTRIBUTING.md].
|
||||||
|
|
||||||
[CONTRIBUTING.md]: https://github.com/brson/rust-cookbook/blob/master/CONTRIBUTING.md
|
[CONTRIBUTING.md]: https://github.com/rust-lang-nursery/rust-cookbook/blob/master/CONTRIBUTING.md
|
||||||
|
|
||||||
## [Basics](basics.html)
|
## [Basics](basics.html)
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
fn main() {
|
fn main() {
|
||||||
println!("This program does nothing.");
|
println!("This program does nothing.");
|
||||||
println!("See documentation at https://github.com/brson/rust-cookbook");
|
println!("See documentation at https://github.com/rust-lang-nursery/rust-cookbook");
|
||||||
}
|
}
|
||||||
|
|
|
@ -396,7 +396,7 @@ struct User {
|
||||||
|
|
||||||
fn run() -> Result<()> {
|
fn run() -> Result<()> {
|
||||||
let request_url = format!("https://api.github.com/repos/{owner}/{repo}/stargazers",
|
let request_url = format!("https://api.github.com/repos/{owner}/{repo}/stargazers",
|
||||||
owner = "brson",
|
owner = "rust-lang-nursery",
|
||||||
repo = "rust-cookbook");
|
repo = "rust-cookbook");
|
||||||
println!("{}", request_url);
|
println!("{}", request_url);
|
||||||
let mut response = reqwest::get(&request_url)?;
|
let mut response = reqwest::get(&request_url)?;
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
|
|
||||||
// START - Rust Cookbook customization
|
// START - Rust Cookbook customization
|
||||||
$("#edit-button").click(function(){
|
$("#edit-button").click(function(){
|
||||||
var editWindow = window.open("https://github.com/brson/rust-cookbook/edit/master/src/{{ path }}");
|
var editWindow = window.open("https://github.com/rust-lang-nursery/rust-cookbook/edit/master/src/{{ path }}");
|
||||||
});
|
});
|
||||||
// END - Rust Cookbook customization
|
// END - Rust Cookbook customization
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Add table
Reference in a new issue