Skip to content

Commit 5b04df5

Browse files
committed
docs: icon
1 parent 4ee10a9 commit 5b04df5

File tree

5 files changed

+119
-0
lines changed

5 files changed

+119
-0
lines changed

.vitepress/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ export default defineConfig({
321321
]
322322
},
323323
themeConfig: {
324+
logo: "/icon.svg",
324325
editLink: {
325326
pattern: "https://github.com/withcatai/node-llama-cpp/edit/master/docs/:path"
326327
},

.vitepress/theme/style.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
--vp-c-brand-2: #cc6e3a;
44
--vp-c-brand-3: #cd8156;
55
--vp-c-brand-soft: rgb(255 156 100 / 14%);
6+
color-scheme: light;
67
}
78

89
.dark {
910
--vp-c-brand-1: #ffc7a8;
1011
--vp-c-brand-2: #e78e5c;
1112
--vp-c-brand-3: #dd773e;
1213
--vp-c-brand-soft: rgb(255 156 100 / 16%);
14+
color-scheme: dark;
1315
}
1416

1517
:root {
@@ -74,6 +76,13 @@
7476
--vp-c-neutral-inverse: rgb(0 0 0 / 60%);
7577
}
7678

79+
.VPNavBarTitle>.title>.logo {
80+
margin-bottom: -2px;
81+
}
82+
.VPNavBar.home .VPNavBarTitle>.title>.logo {
83+
display: none;
84+
}
85+
7786
.VPNavBar:before {
7887
display: block;
7988
position: absolute;

assets/icon.svg

Lines changed: 91 additions & 0 deletions
Loading

assets/icon.v3.svg

Lines changed: 9 additions & 0 deletions
Loading

docs/public/icon.svg

Lines changed: 9 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)