Skip to content

Commit b2b4970

Browse files
committed
add logo to docs
1 parent eb95e8c commit b2b4970

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

docs/book.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ title = "NixOS-WSL"
66

77
[output.html]
88
additional-css = ["custom.css"]
9+
additional-js = ["custom.js"]
910
edit-url-template = "https://github.com/nix-community/nixos-wsl/tree/main/docs/{path}"
1011
git-repository-url = "https://github.com/nix-community/nixos-wsl"

docs/custom.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,8 @@
1111
html {
1212
font-family: "Segoe UI", "Open Sans", sans-serif;
1313
}
14+
15+
img.menu-title {
16+
height: 3ex;
17+
align-self: center;
18+
}

docs/custom.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[...document.getElementsByClassName("menu-title")].forEach(it => {
2+
it.outerHTML = `
3+
<img class="menu-title" src="./NixOS-WSL.svg" alt="NixOS-WSL" />
4+
`;
5+
});

docs/src/NixOS-WSL.svg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../assets/NixOS-WSL.svg

0 commit comments

Comments
 (0)