Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,24 @@ export default defineConfig({

title: "Project X",
description: "Xray-core",
head: [["link", { rel: "icon", href: "/logo.png" }]],
head: [
[
"link",
{
rel: "icon",
href: "/logo-light.svg",
media: "(prefers-color-scheme: light)"
}
],
[
"link",
{
rel: "icon",
href: "/logo-dark.svg",
media: "(prefers-color-scheme: dark)"
}
]
],

lastUpdated: true,

Expand Down Expand Up @@ -54,6 +71,7 @@ export default defineConfig({

themeConfig: {
// https://vitepress.dev/reference/default-theme-config
logo: { light: "/logo-light.svg", dark: "/logo-dark.svg" },
nav: nav,

search: {
Expand Down
2 changes: 1 addition & 1 deletion docs/en/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ hero:
text: Xray-core
tagline: Fear not the clouds that obscure the view, golden eyes like a torch brighten the sky
image:
src: /LogoX2.png
src: /img-project-x.png
alt: Xray, Penetrates Everything
actions:
- theme: brand
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ hero:
text: Xray-core
tagline: 不畏浮云遮望眼 · 金睛如炬耀苍穹
image:
src: /LogoX2.png
src: /img-project-x.png
alt: Xray, Penetrates Everything
actions:
- theme: brand
Expand Down
File renamed without changes
File renamed without changes
9 changes: 9 additions & 0 deletions docs/public/logo-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions docs/public/logo-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/ru/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ hero:
text: Xray-core
tagline: Не бойтесь облаков, застилающих вид – золотые глаза, словно факел, озаряют небо.
image:
src: /LogoX2.png
src: /img-project-x.png
alt: Xray, Penetrates Everything
actions:
- theme: brand
Expand Down