-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpagic.config.tsx
98 lines (97 loc) · 2.35 KB
/
pagic.config.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
import { React } from "https://deno.land/x/pagic/mod.ts";
export default {
srcDir: "docs", // 源目录
// outDir: "public", // 输出目录
root: "/",
theme: "docs",
plugins: ["sidebar", "prev_next", "gitalk"],
github: "https://github.com/ViktorWong/my-docs",
title: "Viktor‘s Docs",
branth: "master",
description: "我的图书馆",
head: (
<>
<link rel="icon" type="image/png" href="/favicon.png" />
<script
data-ad-client="ca-pub-5052023368276507"
async
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"
></script>
</>
),
nav: [
{ text: "秘籍收藏", link: "/collection/index.html" },
{ text: "面霸心经", link: "/interview/index.html" },
{ text: "修仙入门", link: "/start/index.html" },
{ text: "进阶功法", link: "/advanced/index.html" },
{ text: "跨界码王", link: "/crossover/index.html" },
],
sidebar: {
"/collection/": [
{
link: "collection/README.md",
title: "秘籍收藏",
children: [],
},
],
"/interview/": [
{
link: "interview/README.md",
title: "面霸心经",
children: [
"interview/README.md",
"interview/Alibaba.md",
"interview/HTTP.md",
"interview/DataStructure.md",
"interview/Algorithm.md",
],
},
],
"/crossover/": [
{
link: "crossover/README.md",
title: "ReactNative",
children: ["crossover/RN.md"],
},
],
"/start/": [
{
link: "start/README.md",
title: "修仙入门",
children: [
"start/CSS.md",
"start/CSS3.md",
"start/JS.md",
"start/Mobile.md",
"start/Performance.md",
"start/Codeing.md",
"start/Mobx.md",
],
},
],
"/advanced/": [
{
link: "advanced/README.md",
title: "进阶功法",
children: [],
},
],
},
md: {
anchorLevel: [1, 2, 3, 4, 5, 6],
tocEnabled: true,
tocLevel: [1, 2, 3, 4],
},
tools: {
editOnGitHub: true,
backToTop: true,
},
gitalk: {
clientID: "0af8ad0c8674b58c37c0",
clientSecret: "fe697a9667fc2b49387bf550e4178b3eaa5b8859",
repo: "my-docs",
owner: "ViktorWong",
admin: ["ViktorWong"],
pagerDirection: "first",
},
};