File tree Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 194
194
< section class ="section " id ="DocumentationText ">
195
195
{{ content }}
196
196
</ section >
197
+ < script language ="javascript ">
198
+ var x = document . links . length ;
199
+ for ( i = 0 ; i < x ; i ++ ) {
200
+ var thisHREF = document . links [ i ] . href ;
201
+ if ( thisHREF . indexOf ( window . location . hostname ) > - 1 ) thisHREF = thisHREF . replace ( ".md" , "/" ) . replace ( "/index/" , "/" ) ;
202
+ document . links [ i ] . setAttribute ( 'href' , thisHREF ) ;
203
+ }
204
+ </ script >
197
205
</ div >
198
206
</ div >
199
207
</ div >
Original file line number Diff line number Diff line change @@ -66,3 +66,14 @@ Enjoy working with Compose faster and with less typos!
66
66
- [ Get started with WordPress] ( wordpress.md )
67
67
- [ Command line reference] ( ./reference/index.md )
68
68
- [ Compose file reference] ( compose-file.md )
69
+
70
+ <script language =" javascript " >
71
+ console .log (" Domain: " + window .location .hostname );
72
+ var x = document .links .length ;
73
+ for (i = 0 ; i < x; i++ ) {
74
+ console .log (document .links [i].href );
75
+ var thisHREF = document .links [i].href ;
76
+ thisHREF = thisHREF .replace (" .md" ," /" ).replace (" /index/" ," /" );
77
+ document .links [i].setAttribute (' href' , thisHREF);
78
+ }
79
+ </script >
Original file line number Diff line number Diff line change 7
7
parent : docker-cloud
8
8
weight : -100
9
9
title : Docker Cloud Overview
10
+ permalink : /docker-cloud/overview.md
10
11
---
11
12
12
13
# What is Docker Cloud?
You can’t perform that action at this time.
0 commit comments