升级:vitepress版本升级为v1.0.0-alpha.5,并在导航栏新增自定义图标(新特性)

This commit is contained in:
2022-08-16 11:37:45 +08:00
parent ee8cfef365
commit 8a5ae2abff
3 changed files with 18 additions and 6 deletions

View File

@@ -27,7 +27,19 @@ export const themeConfig: DefaultTheme.Config = {
},
// 导航栏右侧社交链接配置
socialLinks: [
{ icon: 'github', link: 'https://github.com/Charles7c/charles7c.github.io' }
{ icon: 'github', link: 'https://github.com/Charles7c/charles7c.github.io' },
{
icon: {
svg: '<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>码云</title><path d="M11.984 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.016 0zm6.09 5.333c.328 0 .593.266.592.593v1.482a.594.594 0 0 1-.593.592H9.777c-.982 0-1.778.796-1.778 1.778v5.63c0 .327.266.592.593.592h5.63c.982 0 1.778-.796 1.778-1.778v-.296a.593.593 0 0 0-.592-.593h-4.15a.592.592 0 0 1-.592-.592v-1.482a.593.593 0 0 1 .593-.592h6.815c.327 0 .593.265.593.592v3.408a4 4 0 0 1-4 4H5.926a.593.593 0 0 1-.593-.593V9.778a4.444 4.444 0 0 1 4.445-4.444h8.296Z"/></svg>'
},
link: 'https://gitee.com/Charles7c/charles7c'
},
{
icon: {
svg: '<svg role="img" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg"><title>查尔斯的网址导航</title><path d="M512 22C241.38 22 22 241.38 22 512s219.38 490 490 490 490-219.38 490-490S782.62 22 512 22z m226.06 277.73L517.54 809.14c-3.18 7.28-13.72 7.08-17.21-0.41L410.4 616.57a5.966 5.966 0 0 0-2.97-2.97L215.6 523.58c-7.58-3.49-7.79-14.05-0.41-17.23l508.74-220.76c8.91-3.91 18.03 5.22 14.13 14.14z" p-id="4967"></path></svg>'
},
link: 'https://nav.charles7c.top'
}
],
// 自定义扩展: 页脚配置

View File

@@ -12,7 +12,7 @@
},
"devDependencies": {
"unplugin-vue-components": "0.22.0",
"vitepress": "^1.0.0-alpha.4",
"vitepress": "^1.0.0-alpha.5",
"vue": "^3.2.37"
},
"dependencies": {

View File

@@ -2038,10 +2038,10 @@ vite@^2.9.7:
optionalDependencies:
fsevents "~2.3.2"
vitepress@^1.0.0-alpha.4:
version "1.0.0-alpha.4"
resolved "https://registry.npmjs.org/vitepress/-/vitepress-1.0.0-alpha.4.tgz#2d9929e2cade3d98f57f61848c01968fb386cee0"
integrity sha512-bOAA4KW6vYGlkbcrPLZLTKWTgXVroObU+o9xj9EENyEl6yg26WWvfN7DGA4BftjdM5O8nR93Z5khPQ3W/tFE7Q==
vitepress@^1.0.0-alpha.5:
version "1.0.0-alpha.5"
resolved "https://registry.npmjs.org/vitepress/-/vitepress-1.0.0-alpha.5.tgz#eb7acfe61c74ed7bfe02882d2a83c033cce8282f"
integrity sha512-bhUfmTzd+i5fm2rInBR1Q/1RBhT0xTXM+vPqVWJdHmIc8XnWF/O7lT6kai38rOTNTt/KyPDk2SRRourPVhQJMA==
dependencies:
"@docsearch/css" "^3.0.0"
"@docsearch/js" "^3.0.0"