Add doc (WIP)
This commit is contained in:
BIN
doc/docs/statics/Logo_Smile.png
Normal file
BIN
doc/docs/statics/Logo_Smile.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
41
doc/docs/statics/addons.js
Normal file
41
doc/docs/statics/addons.js
Normal 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
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
19
doc/docs/statics/main.css
Normal 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%;
|
||||
}
|
Reference in New Issue
Block a user