|
9 | 9 | <link rel="stylesheet" href="${resourcesPath}/css/pdf.css" type="text/css" media="print" title="PDF" charset="utf-8" />
|
10 | 10 | <link rel="stylesheet" href="${resourcesPath}/css/highlight/agate.css">
|
11 | 11 | <script src="${resourcesPath}/js/highlight.pack.js"></script>
|
| 12 | + <script src="${resourcesPath}/js/guide.js"></script> |
12 | 13 | <script>hljs.initHighlightingOnLoad();</script>
|
13 | 14 | <script src="${resourcesPath}/js/docs.js"></script>
|
14 | 15 | <script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.5.13/clipboard.min.js"></script>
|
|
22 | 23 |
|
23 | 24 | </head>
|
24 | 25 |
|
25 |
| -<body class="body" onload="addJsClass();" onhashchange="highlightMenu()"> |
| 26 | +<body class="body" id="docs" onload="addJsClass();" onhashchange="highlightMenu()"> |
26 | 27 |
|
27 | 28 | <div id="table-of-content-nav-link" class="desktop">
|
28 | 29 | <a title="Collapse/Open Table of contents" title="Hide Table of Contents" href="javascript:hideTableOfContents();" class="button">[ + ]</a>
|
|
66 | 67 | <li class="mobile">
|
67 | 68 | <a title="Go to API documentation" href="${path}/api/index.html" class="button">API</a>
|
68 | 69 | </li>
|
| 70 | + <li class="desktop"> |
| 71 | + <a title="Go to Configuration Reference documentation" href="${path}/guide/configurationreference.html" class="button">Configuration Reference</a> |
| 72 | + </li> |
| 73 | + <li class="mobile"> |
| 74 | + <a title="Go to Configuration Reference documentation" href="${path}/guide/configurationreference.html" class="button">Conf</a> |
| 75 | + </li> |
69 | 76 | </ul>
|
70 | 77 |
|
71 | 78 | </div>
|
@@ -113,77 +120,6 @@ <h1>${title.encodeAsHtml()}</h1>
|
113 | 120 | </div>
|
114 | 121 |
|
115 | 122 | <script type="text/javascript">
|
116 |
| - function wrapElementsInLinks(x) { |
117 |
| - var i; |
118 |
| - for (i = 0; i < x.length; i++) { |
119 |
| - if (x[i].id !== '') { |
120 |
| - var link = document.createElement('a'); |
121 |
| - link.innerHTML = x[i].outerHTML; |
122 |
| - link.setAttribute('href', 'index.html#'+x[i].id); |
123 |
| - x[i].parentNode.insertBefore(link, x[i]); |
124 |
| - x[i].remove(); |
125 |
| - } |
126 |
| - } |
127 |
| - } |
128 |
| - wrapElementsInLinks(document.querySelectorAll("h1")); |
129 |
| - wrapElementsInLinks(document.querySelectorAll("h2")); |
130 |
| - wrapElementsInLinks(document.querySelectorAll("h3")); |
131 |
| - |
132 |
| - var tocId = "table-of-content"; |
133 |
| - var tocLink = "table-of-content-nav-link"; |
134 |
| - var mainId = "main"; |
135 |
| - function hideTableOfContents() { |
136 |
| - document.getElementById(tocId).style.display = "none"; |
137 |
| - document.getElementById(mainId).style.paddingLeft = "0"; |
138 |
| - var aEl = document.getElementById(tocLink).getElementsByTagName("a")[0]; |
139 |
| - replaceLink(aEl, "javascript:showTableOfContents();", "[ - ]", 'Show Table of Contents'); |
140 |
| - goToLocation(); |
141 |
| - } |
142 |
| - |
143 |
| - function goToLocation() { |
144 |
| - if(location.hash != '') { |
145 |
| - window.location = location; |
146 |
| - } |
147 |
| - } |
148 |
| - |
149 |
| - function replaceLink(anchorElement, href, text, titleAttr) { |
150 |
| - anchorElement.setAttribute("href", href); |
151 |
| - anchorElement.setAttribute("title", titleAttr); |
152 |
| - anchorElement.innerText = text; |
153 |
| - } |
154 |
| - |
155 |
| - function showTableOfContents() { |
156 |
| - document.getElementById(tocId).style.display = "block"; |
157 |
| - document.getElementById(mainId).style.paddingLeft = "25em"; |
158 |
| - var aEl = document.getElementById(tocLink).getElementsByTagName("a")[0]; |
159 |
| - replaceLink(aEl, "javascript:hideTableOfContents();", "[ + ]", 'Hide Table of Contents'); |
160 |
| - goToLocation(); |
161 |
| - } |
162 |
| - |
163 |
| - function scrollToTop() { |
164 |
| - document.getElementById(tocId).style.display = "block"; |
165 |
| - document.body.scrollTop = 0; // For Safari |
166 |
| - document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera |
167 |
| - } |
168 |
| - |
169 |
| - function highlightMenu() { |
170 |
| - var cssClass = 'toc-item-highlighted'; |
171 |
| - var els = document.getElementsByClassName(cssClass); |
172 |
| - for (var x = 0; x < els.length; x++) { |
173 |
| - els[x].classList.remove(cssClass); |
174 |
| - } |
175 |
| - console.log("highlighting hash" + location.hash); |
176 |
| - if(location.hash != '') { |
177 |
| - var elId = "toc-item-"+location.hash.replace('#', ''); |
178 |
| - if(document.getElementById(elId)) { |
179 |
| - document.getElementById(elId).getElementsByTagName('a')[0].classList.add(cssClass); |
180 |
| - document.getElementById(elId).scrollIntoView(true); |
181 |
| - } |
182 |
| - } |
183 |
| - } |
184 |
| - |
185 |
| - goToLocation(); |
186 |
| - highlightMenu(); |
187 | 123 |
|
188 | 124 | </script>
|
189 | 125 | </body>
|
|
0 commit comments