Skip to content

Commit b09dffd

Browse files
committed
feat: set logo
Signed-off-by: seven <[email protected]>
1 parent 4f01b68 commit b09dffd

File tree

6 files changed

+32
-10
lines changed

6 files changed

+32
-10
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,4 @@ dist
130130
.pnp.*
131131
/.idea/
132132
/docs/.vitepress/cache/
133+
/cache/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# dockit official site
1+
# DocKit official site
22

33

docs/.vitepress/config.mts

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,40 @@
1-
import { defineConfig } from 'vitepress'
1+
import {defineConfig} from 'vitepress'
22

33
// https://vitepress.dev/reference/site-config
44
export default defineConfig({
55
title: "DocKit",
66
description: "Explore your data any time from your laptop",
77
outDir: '../dist',
88
cacheDir: '../cache',
9+
head: [['link', {rel: 'icon', href: '/favicon.ico'}]],
910
themeConfig: {
1011
// https://vitepress.dev/reference/default-theme-config
12+
logo: '/favicon.ico',
1113
nav: [
12-
{ text: 'Home', link: '/' },
13-
{ text: 'Docs', link: '/docs' },
14-
{ text: 'Download', link: '/download' }
14+
{text: 'Home', link: '/'},
15+
{text: 'Docs', link: '/docs'},
16+
{text: 'Download', link: '/download'}
1517
],
1618

1719
sidebar: [
1820
{
1921
text: 'Docs',
2022
items: [
21-
{ text: 'document', link: '/docs' },
23+
{text: 'document', link: '/docs'},
2224
]
2325
},
2426
{
2527
text: 'Download',
2628
items: [
27-
{ text: 'mac', link: '/markdown-examples' },
28-
{ text: 'linux', link: '/api-examples' },
29-
{ text: 'windows', link: '/api-examples' }
29+
{text: 'mac', link: '/markdown-examples'},
30+
{text: 'linux', link: '/api-examples'},
31+
{text: 'windows', link: '/api-examples'}
3032
]
3133
}
3234
],
3335

3436
socialLinks: [
35-
{ icon: 'github', link: 'https://github.com/geek-fun/dockit' }
37+
{icon: 'github', link: 'https://github.com/geek-fun/dockit'}
3638
]
3739
}
3840
})

docs/.vitepress/theme/custom.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
:root {
2+
--vp-c-brand: #F89B40;
3+
}

docs/.vitepress/theme/index.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import DefaultTheme from 'vitepress/theme'
2+
import {inBrowser, useData} from "vitepress";
3+
import {watchEffect} from "vue";
4+
import './custom.css'
5+
6+
export default {
7+
...DefaultTheme,
8+
setup() {
9+
const {lang} = useData()
10+
watchEffect(() => {
11+
if (inBrowser) {
12+
document.cookie = `nf_lang=${lang.value}; expires=Mon, 1 Jan 2024 00:00:00 UTC; path=/`
13+
}
14+
})
15+
}
16+
}

docs/public/favicon.ico

138 KB
Binary file not shown.

0 commit comments

Comments
 (0)