Sync docs from master to gh-pages

This commit is contained in:
buildmaster
2019-03-19 07:57:19 +00:00
parent 6176c00a21
commit 2855328285
4 changed files with 183 additions and 3 deletions

View File

@@ -16,7 +16,13 @@ if (toctitle != null) {
});
if (!path.endsWith("index.html") && !path.endsWith("/")) {
var link = document.createElement("a");
link.setAttribute("href", "index.html");
if (document.getElementById('index-link')) {
indexLinkElement = document.querySelector('#index-link > p > a');
linkHref = indexLinkElement.getAttribute("href");
link.setAttribute("href", linkHref);
} else {
link.setAttribute("href", "index.html");
}
link.innerHTML = "<span><i class=\"fa fa-chevron-left\" aria-hidden=\"true\"></i></span> Back to index";
var block = document.createElement("div");
block.setAttribute('class', 'back-action');
@@ -104,4 +110,4 @@ var headerHtml = '<div id="header-spring">\n' +
var header = document.createElement("div");
header.innerHTML = headerHtml;
document.body.insertBefore(header, document.body.firstChild);
document.body.insertBefore(header, document.body.firstChild);