Skip to content

Commit 86f2caa

Browse files
committed
Change the URL to Rust by Example
1 parent b21613b commit 86f2caa

File tree

2 files changed

+2
-26
lines changed

2 files changed

+2
-26
lines changed

404.md

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,5 @@ permalink: /404.html
55

66
## 404 Not Found
77

8-
<div id="suggestion">
98
お探しのページは存在しません。
10-
<a href="https://doc.rust-jp.rs">トップページ</a>からご利用ください。
11-
</div>
12-
13-
<script>
14-
var base_url = 'https://doc.rust-jp.rs';
15-
// var rbe_old = '/rust-by-example-ja/rust-by-example/';
16-
var rbe_old = '/test/';
17-
var rbe_new = '/rust-by-example-ja/'
18-
19-
var href = location.href;
20-
var path = location.pathname;
21-
var redirect_to = '';
22-
23-
if (path.startsWith(rbe_old)) {
24-
redirect_to = href.replace(rbe_old, rbe_new);
25-
}
26-
27-
if (redirect_to != '') {
28-
var elem = document.getElementById('suggestion');
29-
elem.innerHTML = '<p>お探しのページは移動したようです。こちらのURLをお試しください。</br>'
30-
elem.innerHTML += '<a href="' + redirect_to + '">' + redirect_to + '</a></p>';
31-
elem.innerHTML += '<p>または、このサイトの<a href="' + base_url + '">トップページ</a>をご利用ください。</p>'
32-
}
33-
</script>
9+
[トップページ](https://doc.rust-jp.rs)からご利用ください。

index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ title: "Home"
2828
[trpl2-pdf]: https://y-yu.github.io/trpl-2nd-pdf/book.pdf
2929
[trpl1-1.9]: https://doc.rust-jp.rs/the-rust-programming-language-ja/1.9/book/
3030
[trpl1-1.6]: https://doc.rust-jp.rs/the-rust-programming-language-ja/1.6/book/
31-
[rbe]: https://doc.rust-jp.rs/rust-by-example-ja/rust-by-example/
31+
[rbe]: https://doc.rust-jp.rs/rust-by-example-ja/
3232
[std-vec]: https://mosh-g.github.io/rust-lib-doc-ja/std/vec/
3333
[nomicon]: https://doc.rust-jp.rs/rust-nomicon-ja/
3434
[edition-guide]: https://doc.rust-jp.rs/edition-guide/

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