Changes for move to Netlify (#4464)
* disable jekyll-redirect-from gem * add _redirects file * disable 404 redirect script * add 301 redirect to test * retain _redirects file * Convert redirect_from's to _redirect file. (#4409) * Remove redirect_from's. (#4424) * Add 301's to _redirects. (#4427) * add whitespace before 301 * move redirects in /js/redirects/js to _redirects * add disabled option for cn redirect * convert include to array in _config.yml * enable redirects.js script for legacy support
This commit is contained in:
+1
-57
@@ -3,7 +3,7 @@ $( document ).ready(function() {
|
||||
var notHere = false;
|
||||
var forwardingURL = window.location.href;
|
||||
|
||||
var oldURLs = ["/README.md","/README.html","/index.md",".html",".md","/v1.1/","/v1.0/"];
|
||||
var oldURLs = ["/README.md","/README.html","/index.md",".html",".md"];
|
||||
|
||||
/* var: forwardingRules
|
||||
* type: array of objects
|
||||
@@ -32,62 +32,6 @@ $( document ).ready(function() {
|
||||
"pattern":"\/contribute\/([0-9a-zA-Z\-\_]+)",
|
||||
"to":"/docs/home/contribute",
|
||||
"postfix":"/<token>"
|
||||
},
|
||||
{
|
||||
"from":"/resource-quota",
|
||||
"pattern":"",
|
||||
"to":"/docs/concepts/policy/resource-quotas/",
|
||||
"postfix":""
|
||||
},
|
||||
{
|
||||
"from":"/horizontal-pod-autoscaler",
|
||||
"pattern":"",
|
||||
"to":"/docs/tasks/run-application/horizontal-pod-autoscale/",
|
||||
"postfix":""
|
||||
},
|
||||
{
|
||||
"from":"/docs/roadmap",
|
||||
"pattern":"",
|
||||
"to":"https://github.com/kubernetes/kubernetes/milestones/",
|
||||
"postfix":""
|
||||
},
|
||||
{
|
||||
"from":"/api-ref/",
|
||||
"pattern":"",
|
||||
"to":"https://github.com/kubernetes/kubernetes/milestones/",
|
||||
"postfix":""
|
||||
},
|
||||
{
|
||||
"from":"/kubernetes/third_party/swagger-ui/",
|
||||
"pattern":"",
|
||||
"to":"/docs/reference",
|
||||
"postfix":""
|
||||
},
|
||||
{
|
||||
"from":"/docs/user-guide/overview",
|
||||
"pattern":"",
|
||||
"to":"/docs/concepts/overview/what-is-kubernetes/",
|
||||
"postfix":""
|
||||
},
|
||||
{
|
||||
"from": "/docs/admin/multiple-schedulers",
|
||||
"to": "/docs/tutorials/clusters/multiple-schedulers/"
|
||||
},
|
||||
{
|
||||
"from": "/docs/troubleshooting/",
|
||||
"to": "/docs/tasks/debug-application-cluster/troubleshooting/"
|
||||
},
|
||||
{
|
||||
"from": "/docs/concepts/services-networking/networkpolicies/",
|
||||
"to": "/docs/concepts/services-networking/network-policies/"
|
||||
},
|
||||
{
|
||||
"from": "/docs/getting-started-guides/meanstack/",
|
||||
"to": "https://medium.com/google-cloud/running-a-mean-stack-on-google-cloud-platform-with-kubernetes-149ca81c2b5d"
|
||||
},
|
||||
{
|
||||
"from": "/docs/samples/",
|
||||
"to": "/docs/tutorials/"
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user