mirror of https://github.com/docker/docs.git
Revert "Fix for index.md# Links" (#4051)
* Revert "Put back delimited for YAML (#4046)" This reverts commitfba2177277
. * Revert "copy-edits and clarify Docker for Windows purpose (#4014)" This reverts commitdf36e90b6e
. * Revert "Update index.md (#3993)" This reverts commit3c259d8fb1
. * Revert "Update scaling.md (#4007)" This reverts commitb9df557deb
. * Revert "used proper css tag for accordion background color (#4016)" This reverts commit7ab454f1d5
. * Revert "Fix for index.md# Links (#3981)" This reverts commit29c11bebec
.
This commit is contained in:
parent
fba2177277
commit
900d669cba
|
@ -107,14 +107,12 @@ else %}{% assign edit_url = "" %}{% endif %} {% break %} {% endif %} {% endfor %
|
||||||
var munged = false;
|
var munged = false;
|
||||||
var thisHREF = document.links[i].href;
|
var thisHREF = document.links[i].href;
|
||||||
var originalURL = "{{ page.url }}";
|
var originalURL = "{{ page.url }}";
|
||||||
/*
|
|
||||||
if (thisHREF.indexOf(baseHref + "#") > -1) {
|
if (thisHREF.indexOf(baseHref + "#") > -1) {
|
||||||
// hash fix
|
// hash fix
|
||||||
//console.log('BEFORE: base:',baseHref,'thisHREF:',thisHREF,'originalURL:',originalURL);
|
//console.log('BEFORE: base:',baseHref,'thisHREF:',thisHREF,'originalURL:',originalURL);
|
||||||
thisHREF = originalURL + thisHREF.replace(baseHref, "");
|
thisHREF = originalURL + thisHREF.replace(baseHref, "");
|
||||||
//console.log('AFTER: base:',baseHref,'thisHREF:',thisHREF,'originalURL:',originalURL);
|
//console.log('AFTER: base:',baseHref,'thisHREF:',thisHREF,'originalURL:',originalURL);
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
if ((thisHREF.indexOf(window.location.hostname) > -1 || thisHREF.indexOf('http') == -1) && document.links[i].className.indexOf("nomunge") < 0) {
|
if ((thisHREF.indexOf(window.location.hostname) > -1 || thisHREF.indexOf('http') == -1) && document.links[i].className.indexOf("nomunge") < 0) {
|
||||||
munged = true;
|
munged = true;
|
||||||
thisHREF = thisHREF.replace(".md", "/").replace("/index/", "/");
|
thisHREF = thisHREF.replace(".md", "/").replace("/index/", "/");
|
||||||
|
|
Loading…
Reference in New Issue