2
2
import React from 'https://dev.jspm.io/react@16.13.1'
3
3
4
4
export default {
5
- srcDir : '. ' ,
6
- ignore : [ / \/ d e m o s \/ / , / \/ p u b l i c \/ / , / \/ \. / , / \/ L I C E N S E / , / \/ o r i g i n a l - a r t i c l e s \/ / , / \/ p a g i c \. c o n f i g \. t s x / ] ,
5
+ srcDir : 'site ' ,
6
+ exclude : [ / \/ d e m o s \/ / , / \/ p u b l i c \/ / , / \/ \. / , / \/ L I C E N S E / , / \/ o r i g i n a l - a r t i c l e s \/ / , / \/ p a g i c \. c o n f i g \. t s x / ] ,
7
7
theme : 'docs' ,
8
8
plugins : [ 'sidebar' , 'prev_next' , 'script' , 'gitalk' , 'ga' ] ,
9
9
title : 'Deno 钻研之术' ,
10
10
description : '循序渐进学 Deno & 先易后难补 Node & 面向未来的 Deno Web 应用开发。' ,
11
11
github : 'https://github.com/hylerrix/deno-tutorial' ,
12
12
head : ( < link rel = "icon" type = "image/png" href = "/favicon.png" /> ) ,
13
13
nav : [
14
+ { text : '文章' , link : '/articles/' } ,
14
15
{
15
16
text : '打赏一下!!' ,
16
17
link : 'http://qiniu.ningo.cloud/hylerrix/reward-alipay.png' ,
@@ -22,60 +23,120 @@ export default {
22
23
</ >
23
24
)
24
25
} ,
25
- { text : '官网' , link : 'https://deno.land' } ,
26
- { text : '资源' , link : 'https://github.com/hylerrix/awesome-deno-cn' } ,
27
- { text : '手册' , link : 'https://nugine.github.io/deno-manual-cn' } ,
28
- { text : 'deno.js.cn' , link : 'https://deno.js.cn' } ,
29
- { text : 'denocn.org' , link : 'https://denocn.org' } ,
30
- { text : 'Deno 库排行' , link : 'https://yoshixmk.github.io/deno-x-ranking/' } ,
31
- { text : '关于作者' , link : 'https://github.com/hylerrix' } ,
32
- ] ,
33
- sidebar : [
34
- 'README.md' ,
35
- {
36
- // link: 'articles/basic/README.md',
37
- text : '基础篇' ,
38
- children : [
39
- 'articles/basic/install-and-hello-world.md' ,
40
- ]
41
- } ,
42
- {
43
- // link: 'articles/cli/README.md',
44
- text : 'CLI篇' ,
45
- children : [
46
- 'articles/cli/deno-cli-v1-function.md' ,
47
- ]
48
- } ,
49
- {
50
- // link: 'articles/ecology/README.md',
51
- text : '生态篇' ,
52
- children : [
53
- 'articles/ecology/awesome-deno-cn.md'
54
- ]
55
- } ,
26
+ { text : '资源' , target : '_blank' , link : 'https://github.com/hylerrix/awesome-deno-cn' } ,
27
+ // { text: '官网', target: '_blank', link: 'https://deno.land' },
28
+ // { text: '手册', target: '_blank', link: 'https://nugine.github.io/deno-manual-cn' },
29
+ // { text: '中文社区 1', target: '_blank', link: 'https://deno.js.cn' },
30
+ // { text: '中文社区 2', target: '_blank', link: 'https://denocn.org' },
31
+ // { text: 'Deno 库排行', target: '_blank', link: 'https://yoshixmk.github.io/deno-x-ranking' },
32
+ { text : '镜像' , target : '_blank' , link : 'http://tutorial.deno.js.cn' } ,
33
+ { text : '持续添加中...' , target : '_blank' , link : 'https://github.com/hylerrix' } ,
56
34
{
57
- // link: 'articles/node/README.md',
58
- text : 'Node 篇' ,
59
- children : [
60
- 'articles/node/create-react-app-intro.md' ,
61
- 'articles/node/javascript-toolchain-rome.md' ,
62
- ]
63
- } ,
64
- {
65
- // link: 'translations/README.md',
66
- text : '翻译篇' ,
67
- children : [
68
- 'translations/the-deno-handbook.md' ,
69
- 'translations/deno-chat-app.md' ,
70
- 'translations/from-node-to-deno.md' ,
71
- 'translations/deno-oak-todo-api.md' ,
72
- 'translations/deno-oak-mysql.md' ,
73
- ]
35
+ text : '凝果屋' ,
36
+ link : 'https://github.com/ningowood' ,
37
+ target : '_blank' ,
38
+ popover : (
39
+ < img src = "http://qiniu.ningo.cloud/ningo/official-qrcode.png" width = "256" style = { { verticalAlign : 'top' } } />
40
+ )
74
41
} ,
75
- {
76
- text : '感谢' , link : 'articles/THANKS.md' ,
77
- }
42
+ { text : '关于' , target : '_blank' , link : 'https://github.com/hylerrix' } ,
78
43
] ,
44
+ sidebar : {
45
+ '/articles/' : [
46
+ 'articles/README.md' ,
47
+ {
48
+ link : 'articles/document/README.md' ,
49
+ title : '文档篇' ,
50
+ children : [
51
+ 'articles/document/deno-version-handbook.md' ,
52
+ 'articles/document/deno-cli-handbook.md' ,
53
+ ] ,
54
+ } ,
55
+ {
56
+ link : 'articles/basic/README.md' ,
57
+ title : '基础篇' ,
58
+ children : [
59
+ 'articles/basic/install-and-hello-world.md' ,
60
+ ] ,
61
+ } ,
62
+ {
63
+ link : 'articles/architecture/README.md' ,
64
+ title : '架构篇' ,
65
+ children : [
66
+ {
67
+ link : 'articles/architecture/cli/README.md' ,
68
+ title : '探索 CLI' ,
69
+ children : [
70
+ 'articles/architecture/cli/deno-cli-v1-function.md'
71
+ ] ,
72
+ } ,
73
+ ] ,
74
+ } ,
75
+ // {
76
+ // link: 'articles/frontend/README.md',
77
+ // title: '前端篇',
78
+ // children: [],
79
+ // },
80
+ // {
81
+ // link: 'articles/backend/README.md',
82
+ // title: '后端篇',
83
+ // children: [],
84
+ // },
85
+ {
86
+ link : 'articles/ecology/README.md' ,
87
+ title : '生态篇' ,
88
+ children : [
89
+ 'articles/ecology/awesome-deno-cn.md'
90
+ ] ,
91
+ } ,
92
+ // {
93
+ // link: 'articles/language/README.md',
94
+ // title: '语言篇',
95
+ // children: [],
96
+ // },
97
+ {
98
+ link : 'articles/node/README.md' ,
99
+ title : 'Node 篇' ,
100
+ children : [
101
+ 'articles/node/create-react-app-intro.md' ,
102
+ 'articles/node/javascript-toolchain-rome.md' ,
103
+ ] ,
104
+ } ,
105
+ {
106
+ link : 'articles/translation/README.md' ,
107
+ title : '翻译篇' ,
108
+ children : [
109
+ 'articles/translation/the-deno-handbook.md' ,
110
+ 'articles/translation/deno-chat-app.md' ,
111
+ 'articles/translation/from-node-to-deno.md' ,
112
+ 'articles/translation/deno-oak-todo-api.md' ,
113
+ 'articles/translation/deno-oak-mysql.md' ,
114
+ ] ,
115
+ } ,
116
+ // {
117
+ // link: 'articles/forward/README.md',
118
+ // title: '转载篇',
119
+ // children: [],
120
+ // },
121
+ // {
122
+ // link: 'articles/weekly/README.md',
123
+ // title: '周报篇',
124
+ // children: [],
125
+ // },
126
+ {
127
+ link : 'articles/ROADMAP.md' ,
128
+ title : '未来规划' ,
129
+ children : [
130
+ 'articles/frontend/README.md' , // 前端篇
131
+ 'articles/backend/README.md' , // 后端篇
132
+ 'articles/language/README.md' , // 语言篇
133
+ 'articles/forward/README.md' , // 转载篇
134
+ 'articles/weekly/README.md' , // 周报篇
135
+ ] ,
136
+ } ,
137
+ 'articles/THANKS.md' ,
138
+ ] ,
139
+ } ,
79
140
tools : {
80
141
editOnGithub : true ,
81
142
backToTop : true
@@ -89,6 +150,7 @@ export default {
89
150
pagerDirection : 'first'
90
151
} ,
91
152
ga : {
92
- id : window . Deno ?. env . get ( 'GA_ID' ) ?? 'UA-169223577-1'
93
- }
153
+ id : 'UA-169223577-1'
154
+ } ,
155
+ port : 8011
94
156
}
0 commit comments