Skip to content

Commit 0b27a91

Browse files
committed
fix: 🐞 修复样式
1 parent 310ff66 commit 0b27a91

File tree

7 files changed

+32
-8
lines changed

7 files changed

+32
-8
lines changed

docs/.vitepress/config.mts

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export default defineConfig({
8989
{ text: "首页", link: "/" },
9090
{ text: "指南", link: "/01.指南/" },
9191
{ text: "设计", link: "/design" },
92-
{ text: "API", link: "/07.API/01.登录 API" },
92+
{ text: "API", link: "/07.API/01.API - 登录" },
9393
{ text: "归档", link: "/archives" },
9494
],
9595
socialLinks: [{ icon: "github", link: "https://github.com/Kele-Bingtang/hd-security" }],

docs/@pages/archivesPage.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
archivesPage: true
33
title: 归档
44
permalink: /archives/
5-
article: false
65
layout: page
6+
article: false
7+
sidebar: false
78
---

docs/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ tk:
1414
imgUrl: /img/ui.png
1515
- title: API
1616
description: Hd Security 所有的 API 介绍
17-
link: /07.API/01.登录 API/
17+
link: /07.API/01.API - 登录/
1818
imgUrl: /img/other.png
1919
description:
2020
- 故事由我书写,旅程由你见证,传奇由她聆听 —— 来自 Young Kbt

plugins/vitepress-plugin-doc-analysis/src/helper.ts

+8-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@ export const log = (message: string, type = "yellow") => {
88
};
99

1010
// 默认忽略的文件夹列表
11-
export const DEFAULT_IGNORE_DIR = [".vitepress", "node_modules", "public"];
11+
export const DEFAULT_IGNORE_DIR = [
12+
"scripts",
13+
"components",
14+
"assets",
15+
".vitepress",
16+
"node_modules",
17+
"public",
18+
];
1219

1320
export default (option: SiteInfoOption = {}) => {
1421
const { base = process.cwd() } = option;

plugins/vitepress-plugin-permalink/src/helper.ts

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
import { readdirSync, readFileSync, statSync } from "node:fs";
2-
import { basename, extname, join, resolve } from "node:path";
2+
import { basename, extname, resolve } from "node:path";
33
import matter from "gray-matter";
44
import type { PermalinkOption } from "./types";
55

66
// 默认忽略的文件夹列表
7-
export const DEFAULT_IGNORE_DIR = ["scripts", "components", "assets", ".vitepress", "node_modules", "package.json", "public"];
7+
export const DEFAULT_IGNORE_DIR = [
8+
"scripts",
9+
"components",
10+
"assets",
11+
".vitepress",
12+
"node_modules",
13+
"package.json",
14+
"public",
15+
];
816

917
// key 为文件路径,value 为永久链接
1018
let permalinks: Record<string, string> = {};

plugins/vitepress-plugin-sidebar-resolve/src/helper.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,15 @@ export const log = (message: string, type = "yellow") => {
1111
};
1212

1313
// 默认忽略的文件夹列表
14-
export const DEFAULT_IGNORE_DIR = ["scripts", "components", "assets", ".vitepress", "node_modules", "package.json", "public"];
14+
export const DEFAULT_IGNORE_DIR = [
15+
"scripts",
16+
"components",
17+
"assets",
18+
".vitepress",
19+
"node_modules",
20+
"package.json",
21+
"public",
22+
];
1523

1624
/**
1725
* 生成侧边栏数据

vitepress-theme-tk/src/styles/index.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ html {
1919
html.dark {
2020
--tk-theme-color: var(--vp-c-brand-1);
2121
--tk-lower-color1: #9facba;
22-
--tk-lower-color2: #4e5969;
22+
--tk-lower-color2: #bdc3cc;
2323
--tk-lower-color3: #21252b;
2424
--tk-lower-color4: rgba(34, 34, 34, 0.3);
2525
--tk-lower-color5: rgba(34, 34, 34, 0.5);

0 commit comments

Comments
 (0)