Skip to content
This repository was archived by the owner on Jul 5, 2021. It is now read-only.

fix: redirect /docs to new docs site#272

Merged
kyledrake merged 1 commit intoipfs-inactive:masterfrom
lidel:fix/redirect-docs
Sep 17, 2018
Merged

fix: redirect /docs to new docs site#272
kyledrake merged 1 commit intoipfs-inactive:masterfrom
lidel:fix/redirect-docs

Conversation

@lidel
Copy link
Copy Markdown
Contributor

@lidel lidel commented Sep 17, 2018

Context: #271

In short there are various places that link to the old URL (https://ipfs.io/docs).
This PR adds manual redirect that ensures everyone will get redirected to the up-to-date docs website.

Subsection links will still work, <meta> redirect will point at versions at the new website:

And for everything else in /docs/* redirects to the root of the new website:

Relevant snippet:

https://github.com/ipfs/website/blob/5b15fd080e8a1fc1a619929a02c6e529c8d5e416/layouts/docs/single.html#L5-L17

preview

Closes #271 cc @ipfs/documentation

@lidel lidel changed the title fix: redirect /docs to new docs site [WIP] fix: redirect /docs to new docs site Sep 17, 2018
@lidel lidel changed the title [WIP] fix: redirect /docs to new docs site fix: redirect /docs to new docs site Sep 17, 2018
@kyledrake
Copy link
Copy Markdown
Contributor

👍

Copy link
Copy Markdown
Contributor

@Mr0grog Mr0grog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me! I thought we were going to do HTTP redirects, but this is simple and straightforward to just merge and be done :D

👍 👍 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants