diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml
index 3b98f3590..94ec72b8a 100644
--- a/docs/mkdocs.yml
+++ b/docs/mkdocs.yml
@@ -134,8 +134,8 @@ site_dir: out
theme:
font: false
- logo: https://clan.lol/static/logo/clan-white.png
- favicon: https://clan.lol/static/dark-favicon/128x128.png
+ logo: static/icons/clan-logo.svg
+ favicon: https://clan.lol/favicon.svg
name: material
features:
- navigation.instant
diff --git a/docs/nix/default.nix b/docs/nix/default.nix
index e4f591ffc..4a87c8353 100644
--- a/docs/nix/default.nix
+++ b/docs/nix/default.nix
@@ -45,6 +45,9 @@ pkgs.stdenv.mkDerivation {
# Link to fonts
ln -snf ${roboto}/share/fonts/truetype/Roboto-Regular.ttf ./site/static/
ln -snf ${fira-code}/share/fonts/truetype/FiraCode-VF.ttf ./site/static/
+
+ # Copy icons into place
+ cp -af ../pkgs/webview-ui/app/icons ./site/static/
'';
buildPhase = ''
diff --git a/docs/site/static/extra.css b/docs/site/static/extra.css
index 79325ade9..4f9ad1297 100644
--- a/docs/site/static/extra.css
+++ b/docs/site/static/extra.css
@@ -11,3 +11,7 @@
--md-text-font: "Roboto";
--md-code-font: "Fira Code";
}
+
+.md-header img {
+ filter: invert(100%) brightness(100%);
+}
diff --git a/pkgs/icon-update/default.nix b/pkgs/icon-update/default.nix
index 1319b7fb1..367f5464f 100644
--- a/pkgs/icon-update/default.nix
+++ b/pkgs/icon-update/default.nix
@@ -12,7 +12,8 @@ pkgs.writeShellApplication {
};
text = ''
- OUT_DIR="$(realpath ../webview-ui/app/icons)"
+ REPO_ROOT="$(git rev-parse --show-toplevel)"
+ OUT_DIR="$(realpath "$REPO_ROOT"/pkgs/webview-ui/app/icons)"
export OUT_DIR
deno run --allow-all ${src}/main.ts
'';
diff --git a/pkgs/icon-update/main.ts b/pkgs/icon-update/main.ts
index 26acf8930..22a90baed 100755
--- a/pkgs/icon-update/main.ts
+++ b/pkgs/icon-update/main.ts
@@ -72,7 +72,7 @@ if (urlSet.err !== null) {
const getNamefromType = (str: string) => {
const [_type, name] = str.split("=");
if (!name) {
- console.error("Icon doesnt have name");
+ console.error("Icon doesnt have name", str);
Deno.exit(1);
}
return name;
diff --git a/pkgs/webview-ui/app/icons/clan-icon.svg b/pkgs/webview-ui/app/icons/clan-icon.svg
new file mode 100644
index 000000000..43aa47bce
--- /dev/null
+++ b/pkgs/webview-ui/app/icons/clan-icon.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/pkgs/webview-ui/app/icons/clan-logo.svg b/pkgs/webview-ui/app/icons/clan-logo.svg
new file mode 100644
index 000000000..e164bb029
--- /dev/null
+++ b/pkgs/webview-ui/app/icons/clan-logo.svg
@@ -0,0 +1 @@
+
\ No newline at end of file