You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ja...@apache.org on 2018/03/01 18:45:18 UTC
[cordova-docs] branch master updated: fix redirects docs
This is an automated email from the ASF dual-hosted git repository.
janpio pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-docs.git
The following commit(s) were added to refs/heads/master by this push:
new 102f4dd fix redirects docs
102f4dd is described below
commit 102f4ddc55666b119df47937857fe7cea73fc442
Author: Jan Piotrowski <pi...@gmail.com>
AuthorDate: Thu Mar 1 19:45:16 2018 +0100
fix redirects docs
---
doc/redirects.md | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/doc/redirects.md b/doc/redirects.md
index d4cdcef..89f7c68 100644
--- a/doc/redirects.md
+++ b/doc/redirects.md
@@ -9,7 +9,7 @@ Sometimes (docs) pages get removed, renamed, and added. There is [a redirects fi
For non-docs URIs, there are no versioning considerations. Make redirects like so:
general:
- - {old: "old/uri/for/page.html", new: "its/new/uri.html"}
+ - "old/uri/for/page.html": "its/new/uri.html"
**NOTE**: Review (and test, if possible) these redirects before making them live, since they're permanent (HTTP 301) redirects. Incorrect permanent redirects will make a URI almost impossible to bring back into browsers and search indices.
@@ -32,12 +32,12 @@ Do nothing. Going back in time for new docs is unsupported.
If the URI is removed, mark it as deprecated in `latest/` like so:
docs:
- - {old: "latest/old/uri/for/page.html", new: "deprecated.html"}
+ - "latest/old/uri/for/page.html": "deprecated.html"
If the URI is moved, point it to its new location in `latest/` like so:
docs:
- - {old: "latest/old/uri/for/page.html", new: "latest/its/new/uri.html"}
+ - "latest/old/uri/for/page.html": "latest/its/new/uri.html"
These will handle the case where the "this content is outdated" link is clicked. The case where a user jumps to a specific version is not yet supported.
@@ -46,8 +46,8 @@ These will handle the case where the "this content is outdated" link is clicked.
Add the redirect (in the `docs-global` section this time) like so:
docs-global:
- - {old: "old/uri/for/page.html", new: "its/new/uri.html"}
+ - "old/uri/for/page.html": "its/new/uri.html"
### Case 5: Removing a URI across all versions
-Do nothing. It is now an un-URI. It never existed. Mentioning it is thoughtcrime.
\ No newline at end of file
+Do nothing. It is now an un-URI. It never existed.
--
To stop receiving notification emails like this one, please contact
janpio@apache.org.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org