mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
Relative links JS fix
This commit is contained in:
@@ -194,6 +194,14 @@ ng\:form {
|
||||
<section class="section" id="DocumentationText">
|
||||
{{ content }}
|
||||
</section>
|
||||
<script language="javascript">
|
||||
var x = document.links.length;
|
||||
for (i = 0; i < x; i++) {
|
||||
var thisHREF = document.links[i].href;
|
||||
if (thisHREF.indexOf(window.location.hostname) > -1) thisHREF = thisHREF.replace(".md","/").replace("/index/","/");
|
||||
document.links[i].setAttribute('href', thisHREF);
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -66,3 +66,14 @@ Enjoy working with Compose faster and with less typos!
|
||||
- [Get started with WordPress](wordpress.md)
|
||||
- [Command line reference](./reference/index.md)
|
||||
- [Compose file reference](compose-file.md)
|
||||
|
||||
<script language="javascript">
|
||||
console.log("Domain: " + window.location.hostname);
|
||||
var x = document.links.length;
|
||||
for (i = 0; i < x; i++) {
|
||||
console.log(document.links[i].href);
|
||||
var thisHREF = document.links[i].href;
|
||||
thisHREF = thisHREF.replace(".md","/").replace("/index/","/");
|
||||
document.links[i].setAttribute('href', thisHREF);
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -7,6 +7,7 @@ menu:
|
||||
parent: docker-cloud
|
||||
weight: -100
|
||||
title: Docker Cloud Overview
|
||||
permalink: /docker-cloud/overview.md
|
||||
---
|
||||
|
||||
# What is Docker Cloud?
|
||||
|
||||
Reference in New Issue
Block a user