Skip to content

Commit 6cd55fe

Browse files
committed
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
1 parent f7d4e1a commit 6cd55fe

File tree

7 files changed

+17
-17
lines changed

7 files changed

+17
-17
lines changed

CONTRIBUTING.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ contribute to. Help is welcome.
1313
To start, clone the cookbook from git and navigate to that directory:
1414

1515
```
16-
git clone https://github.com/brson/rust-cookbook.git
16+
git clone https://github.com/rust-lang-nursery/rust-cookbook.git
1717
cd rust-cookbook
1818
```
1919

@@ -82,9 +82,9 @@ Contribution will be open to a broader set of crates in the future.
8282
For more about which crates are represented in the cookbook, see ["a
8383
note about crate representation"][which-crates] in the cookbook.
8484

85-
[example]: https://github.com/brson/rust-cookbook/issues?q=is%3Aissue+is%3Aopen+label%3Aexample
86-
[tracking issue]: https://github.com/brson/rust-cookbook/issues?q=is%3Aissue+is%3Aopen+label%3A%22tracking+issue%22
87-
[which-crates]: https://brson.github.io/rust-cookbook/about.html#a-note-about-crate-representation
85+
[example]: https://github.com/rust-lang-nursery/rust-cookbook/issues?q=is%3Aissue+is%3Aopen+label%3Aexample
86+
[tracking issue]: https://github.com/rust-lang-nursery/rust-cookbook/issues?q=is%3Aissue+is%3Aopen+label%3A%22tracking+issue%22
87+
[which-crates]: https://rust-lang-nursery.github.io/rust-cookbook/about.html#a-note-about-crate-representation
8888
[libz blitz]: https://internals.rust-lang.org/t/rust-libz-blitz/5184
8989

9090
## Adding an example
@@ -100,7 +100,7 @@ Adding an example involves:
100100

101101
The finished commit will look something like [this one].
102102

103-
[this one]: https://github.com/brson/rust-cookbook/commit/e698443f2af08d3106d953c68c1977eba3c3526c
103+
[this one]: https://github.com/rust-lang-nursery/rust-cookbook/commit/e698443f2af08d3106d953c68c1977eba3c3526c
104104

105105
Examples are presently organized in three ways:
106106

@@ -121,7 +121,7 @@ but since the cookbook is so new, quite possibly not. Ask on thread.
121121
For most steps you can simply follow the lead of existing examples.
122122
The art comes in writing effective examples.
123123

124-
["how to read this book"]: https://brson.github.io/rust-cookbook/about.html#how-to-read-this-book
124+
["how to read this book"]: https://rust-lang-nursery.github.io/rust-cookbook/about.html#how-to-read-this-book
125125

126126
## Example guidelines
127127

@@ -162,7 +162,7 @@ supports the use case and might not be obvious to someone new. Say the
162162
minimum possible about aspects that don't directly support the use
163163
case. See ["basics"] for examples.
164164

165-
["basics"]: https://brson.github.io/rust-cookbook/basics.html
165+
["basics"]: https://rust-lang-nursery.github.io/rust-cookbook/basics.html
166166

167167
Hyperlink all references to APIs, either on doc.rust-lang.org/std or
168168
docs.rs, and style them as `code`.
@@ -171,4 +171,4 @@ Finally, this book is intended to also demonstrate the integration
171171
of crates that work well together. Super bonus points for examples
172172
that feature multiple crates sensibly.
173173

174-
[errors]: https://brson.github.io/rust-cookbook/about.html#a-note-about-error-handling
174+
[errors]: https://rust-lang-nursery.github.io/rust-cookbook/about.html#a-note-about-error-handling

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# A Rust Cookbook   [![Build Status]][travis]
22

3-
[Build Status]: https://api.travis-ci.org/brson/rust-cookbook.svg?branch=master
4-
[travis]: https://travis-ci.org/brson/rust-cookbook
3+
[Build Status]: https://api.travis-ci.org/rust-lang-nursery/rust-cookbook.svg?branch=master
4+
[travis]: https://travis-ci.org/rust-lang-nursery/rust-cookbook
55

66
**[Read it here]**.
77

@@ -12,7 +12,7 @@ using the crates of the Rust ecosystem.
1212
These examples are complete, and suitable for copying directly into
1313
new cargo projects. They are tested and guaranteed to work.
1414

15-
[Read it here]: https://brson.github.io/rust-cookbook
15+
[Read it here]: https://rust-lang-nursery.github.io/rust-cookbook
1616

1717
## Contributing
1818

@@ -22,7 +22,7 @@ community. It needs and welcomes help.
2222

2323
For details see [CONTRIBUTING.md] on GitHub.
2424

25-
[CONTRIBUTING.md]: https://github.com/brson/rust-cookbook/blob/master/CONTRIBUTING.md
25+
[CONTRIBUTING.md]: https://github.com/rust-lang-nursery/rust-cookbook/blob/master/CONTRIBUTING.md
2626

2727
## License
2828

deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ echo "Committing book directory to gh-pages branch"
5353
REV=$(git rev-parse --short HEAD)
5454
cd book
5555
git init
56-
git remote add upstream "https://$GH_TOKEN@github.com/brson/rust-cookbook.git"
56+
git remote add upstream "https://$GH_TOKEN@github.com/rust-lang-nursery/rust-cookbook.git"
5757
git config user.name "Rust Cookbook"
5858
git config user.email "[email protected]"
5959
git add -A .

src/intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ contribute to, and an easy to way get involved with the Rust
1414
community. It needs and welcomes help. For details see
1515
[CONTRIBUTING.md].
1616

17-
[CONTRIBUTING.md]: https://github.com/brson/rust-cookbook/blob/master/CONTRIBUTING.md
17+
[CONTRIBUTING.md]: https://github.com/rust-lang-nursery/rust-cookbook/blob/master/CONTRIBUTING.md
1818

1919
## [Basics](basics.html)
2020

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
fn main() {
22
println!("This program does nothing.");
3-
println!("See documentation at https://github.com/brson/rust-cookbook");
3+
println!("See documentation at https://github.com/rust-lang-nursery/rust-cookbook");
44
}

src/net.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ struct User {
396396
397397
fn run() -> Result<()> {
398398
let request_url = format!("https://api.github.com/repos/{owner}/{repo}/stargazers",
399-
owner = "brson",
399+
owner = "rust-lang-nursery",
400400
repo = "rust-cookbook");
401401
println!("{}", request_url);
402402
let mut response = reqwest::get(&request_url)?;

theme/index.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
113113
// START - Rust Cookbook customization
114114
$("#edit-button").click(function(){
115-
var editWindow = window.open("https://github.com/brson/rust-cookbook/edit/master/src/{{ path }}");
115+
var editWindow = window.open("https://github.com/rust-lang-nursery/rust-cookbook/edit/master/src/{{ path }}");
116116
});
117117
// END - Rust Cookbook customization
118118
</script>

0 commit comments

Comments
 (0)