Skip to content

Commit

Permalink
fix: favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
HuanLinOTO committed Feb 12, 2025
1 parent bb043db commit d520c62
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export default defineConfig({
description: "SVC Fusion 的官方文档",
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
logo: "/favicon.ico",

nav: [
{ text: "Home", link: "/" },
{ text: "全流程教程", link: "/start/index" },
Expand Down Expand Up @@ -46,11 +48,11 @@ export default defineConfig({
],
footer: {
message:
'<a href="http://beian.miit.gov.cn/?spm=a2c4g.11174386.n2.3.41d561dbuHrgEv">备案 苏ICP备2024094491号-3</a> <br> 🚀 <a href="https://github.com/HuanLinOTO/svc-fusion-docs/commit/|| CommitHash ||">|| CommitHashShort ||</a> || DeployTime ||',
'<a href="http://beian.miit.gov.cn/?spm=a2c4g.11174386.n2.3.41d561dbuHrgEv">备案 苏ICP备2024094491号-3</a> <br> 🚀 <a href="https://github.com/HuanLinOTO/svc-fusion-docs/commit/bb043db8bb3e92c19e8c7e1728904bda750616c2">bb043db</a> 2/12/2025, 5:09:22 PM',
copyright: "Copyright © 2023-2025 多玩幻灵qwq | 爱过留过",
},
},
head: [
['link', { rel: 'icon', href: '/imgs/SVCFusion.ico' }],
],
["link", { rel: "icon", href: "/favicon.ico" }],
]
});
3 changes: 2 additions & 1 deletion after_build.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// 复制 version.json env_version.json 到 .vitepress/dist
const fs = require('fs');
fs.copyFileSync("version.json", ".vitepress/dist/version.json");
fs.copyFileSync("env_version.json", ".vitepress/dist/env_version.json");
fs.copyFileSync("env_version.json", ".vitepress/dist/env_version.json");
fs.copyFileSync("favicon.ico", ".vitepress/dist/favicon.ico");
File renamed without changes.

0 comments on commit d520c62

Please # to comment.