From 17e0c5d2bdf70db888ebc735db7e93fc78246ab1 Mon Sep 17 00:00:00 2001
From: easterNday <849919718@qq.com>
Date: Mon, 26 Jun 2023 17:20:29 +0800
Subject: [PATCH] feat: add editlink, update time and other settings
---
ArbitrarilyTong/.vitepress/config.ts | 27 +++++++++++++++++++++++----
ArbitrarilyTong/About/index.md | 2 +-
ArbitrarilyTong/index.md | 2 +-
3 files changed, 25 insertions(+), 6 deletions(-)
diff --git a/ArbitrarilyTong/.vitepress/config.ts b/ArbitrarilyTong/.vitepress/config.ts
index 9e37bae..200bce5 100644
--- a/ArbitrarilyTong/.vitepress/config.ts
+++ b/ArbitrarilyTong/.vitepress/config.ts
@@ -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",
@@ -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,
});
diff --git a/ArbitrarilyTong/About/index.md b/ArbitrarilyTong/About/index.md
index 3b20a35..1f114b6 100644
--- a/ArbitrarilyTong/About/index.md
+++ b/ArbitrarilyTong/About/index.md
@@ -1,3 +1,3 @@
# 团队介绍
-你好,世界!
\ No newline at end of file
+你好,世界!custom element
\ No newline at end of file
diff --git a/ArbitrarilyTong/index.md b/ArbitrarilyTong/index.md
index f20c956..41537dc 100644
--- a/ArbitrarilyTong/index.md
+++ b/ArbitrarilyTong/index.md
@@ -18,7 +18,7 @@ hero:
link: /FAQ
features:
- - title: android
+ - title: androidcustom element
details: 测试测试测试测试
link: www.baidu.com
linkText: 仓库地址