Skip to content

Commit 41592d3

Browse files
oddgrdseanmonstar
authored andcommitted
feat: redirect from old urls to new 0.14 urls
1 parent f5227ef commit 41592d3

File tree

10 files changed

+21
-0
lines changed

10 files changed

+21
-0
lines changed

_config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ relative_links:
4242
enabled: true
4343
collections: true
4444

45+
plugins:
46+
- jekyll-redirect-from
47+
4548
docs_url: https://docs.rs/hyper/1.0.0-rc.1
4649
examples_url: https://github.com/hyperium/hyper/tree/master/examples
4750
futures_url: https://docs.rs/futures/0.3.*

_legacy/client/advanced.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
title: Advanced Client Usage
33
layout: guide
4+
redirect_from:
5+
- /guides/client/advanced
46
---
57

68
Once you've done all the setup in the [simple guide][], you probably

_legacy/client/basic.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
title: Getting Started with a Client
33
layout: guide
4+
redirect_from:
5+
- /guides/client/basic
46
---
57

68
To start with, we'll just get a simple `GET` request to a webpage working,

_legacy/client/configuration.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
title: Client Configuration
33
layout: guide
4+
redirect_from:
5+
- /guides/client/configuration
46
---
57

68
## Using TLS

_legacy/client/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
title: Client Guides
33
permalink: /0.14/client
4+
redirect_from:
5+
- /guides/client/
46
---
57

68
This is just placeholder page. It should probably become a table of

_legacy/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
title: Getting Started
33
layout: guide
44
permalink: /guides/0.14/
5+
redirect_from:
6+
- /guides/
57
---
68

79
hyper is an HTTP library for the Rust language.

_legacy/server/echo.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
title: Echo, echo, echo
33
layout: guide
4+
redirect_from:
5+
- /guides/server/echo
46
---
57

68
You already have a [Hello World server](hello-world.md)? Excellent! Usually,

_legacy/server/graceful-shutdown.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
title: Gracefully Shutdown a Server
33
layout: guide
4+
redirect_from:
5+
- /guides/server/graceful-shutdown
46
---
57

68
hyper `Server`s have the ability to "gracefully" shutdown. This means stopping to accept new requests, and shutting down once all in-progress requests have completed.

_legacy/server/hello-world.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
title: Getting Started with a Server
33
layout: guide
4+
redirect_from:
5+
- /guides/server/hello-world
46
---
57

68
Let's start by making a "Hello, World!" server, and expand from there.

_legacy/server/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
title: Server Guides
33
permalink: /0.14/server
4+
redirect_from:
5+
- /guides/server/
46
---
57

68
This is just placeholder page. It should probably become a table of

0 commit comments

Comments
 (0)