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 Sep 17, 2018
lidel:fix/redirect-docs
Merged
fix: redirect /docs to new docs site#272kyledrake merged 1 commit intoipfs-inactive:masterfrom lidel:fix/redirect-docs
kyledrake merged 1 commit intoipfs-inactive:masterfrom
lidel:fix/redirect-docs
Conversation
Contributor
|
👍 |
Mr0grog
approved these changes
Sep 17, 2018
Contributor
Mr0grog
left a comment
There was a problem hiding this comment.
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
👍 👍 👍
This was referenced Oct 4, 2018
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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