Add doc (WIP)

This commit is contained in:
2022-06-13 13:18:31 +02:00
parent f9fd6332d6
commit b1dc94e0e9
6 changed files with 181 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@@ -0,0 +1,41 @@
function addSmileLogo() {
let logo = document.createElement("img");
logo.src = "/statics/Logo_Smile.png";
logo.classList.add("smile-logo");
logo.alt = "Smile logo";
let link = document.createElement("a");
link.href = "https://www.smile.eu";
link.target = "_blank";
link.title = "Smile website";
link.appendChild(logo);
logo.addEventListener("load", () => {
let side = document.querySelector(".wy-menu");
side.appendChild(link);
});
}
function addKatenaryLogo() {
let logo = document.createElement("img");
logo.src = "/statics/logo.png";
logo.classList.add("logo");
logo.alt = "Katenary logo";
let link = document.createElement("a");
link.href = "/";
link.title = "Index page";
link.appendChild(logo);
logo.addEventListener("load", () => {
let side = document.querySelector(".wy-nav-side");
side.insertBefore(link, side.firstChild);
});
}
document.addEventListener("DOMContentLoaded", () => {
addKatenaryLogo();
addSmileLogo();
});

BIN
doc/docs/statics/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

19
doc/docs/statics/main.css Normal file
View File

@@ -0,0 +1,19 @@
.wy-nav-side {
background-color: #333333;
}
.wy-nav-side img.logo {
width: 50%;
margin-left: 25%;
text-align: center;
}
.wy-side-nav-search {
margin-top: 1em;
background-color: #555555;
}
.smile-logo {
width: 80%;
margin-top: 2em;
margin-left: 10%;
}