Skip to content

Commit

Permalink
feat: add editlink, update time and other settings
Browse files Browse the repository at this point in the history
  • Loading branch information
easterNday committed Jun 26, 2023
1 parent 825b49e commit 17e0c5d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 6 deletions.
27 changes: 23 additions & 4 deletions ArbitrarilyTong/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
import { defineConfig } from "vitepress";

// 引入导航栏和侧边栏设置
import nav from "./config/nav";
import sidebar from "./config/sidebar";

// https://vitepress.dev/reference/site-config
// 默认设置
export default defineConfig({
title: "ArbitrarilyTong",
description: "ArbitrarilyTong UI",
themeConfig: {
// 网站标志
logo: "/favicon.png",
// https://vitepress.dev/reference/default-theme-config
// 导航栏
nav,

// 侧边导引
sidebar,

// 社交平台账号
socialLinks: [
{
icon: "github",
Expand All @@ -30,9 +32,26 @@ export default defineConfig({
link: "https://twitter.com/Ninni_kiri_jp",
},
],
// 编辑文档链接
editLink: {
pattern:
"https://github.com/ArbitrarilyTong/ArbitrarilyTong.github.io/edit/main/ArbitrarilyTong/:path",
text: "在 Github 上编辑此文件",
},
// 搜索
search: {
provider: "local",
},
// 版权设置
footer: {
message: '由RealLanta发起 | RespectOWl设计',
copyright: 'Copyright © 2023 ArbitrarilyTong'
}
},
// Head 部分设置
head: [
["link", { rel: "icon", type: "image/svg+xml", href: "/favicon.svg" }],
],
// 最后编辑时间显示
lastUpdated: true,
});
2 changes: 1 addition & 1 deletion ArbitrarilyTong/About/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# 团队介绍

你好,世界!
你好,世界!<Badge type="info">custom element</Badge>
2 changes: 1 addition & 1 deletion ArbitrarilyTong/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ hero:
link: /FAQ

features:
- title: android
- title: android<Badge type="info">custom element</Badge>
details: 测试测试测试测试
link: www.baidu.com
linkText: 仓库地址
Expand Down

0 comments on commit 17e0c5d

Please sign in to comment.