Skip to content

Commit 7f55d73

Browse files
committed
feat: add gitalk, refine the nav, update config plugin
Signed-off-by: hylerrix <hylerrix@gmail.com>
1 parent fcd8aa0 commit 7f55d73

23 files changed

+100
-71
lines changed

.github/workflows/gh-pages.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
curl -fsSL https://deno.land/x/install/install.sh | sh
4242
export PATH="$DENO_INSTALL/bin:$PATH"
4343
deno --version
44-
deno install --unstable --allow-env --allow-read --allow-write --allow-net -n pagic https://deno.land/x/pagic@0.7.6/mod.ts
44+
deno install --unstable --allow-env --allow-read --allow-write --allow-net -n pagic https://deno.land/x/pagic@0.7.28/mod.ts
4545
pagic build
4646
4747
- name: Deploy CN

.ningowood/timeline.md

+9
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@
55
* Github Pages + 百度 SSO
66
* 将文章结构在 Pagic 主题上拆分成三级目录,文章名称上不显示编号
77

8+
## 20200707
9+
10+
* 更新 Pagic 为最新版本并使用其最新功能
11+
* 每个文件夹填充 README.md 来介绍
12+
* 增加赞助功能
13+
* 优化电子书目录结构 -> 争取三级目录结构
14+
* 引入 [Gittalk](https://github.com/gitalk/gitalk)
15+
* 修复图片外链 403 问题
16+
817
## 20200616
918

1019
* 这两天合并了 [@justjavac](https://github.com/justjavac) 的若干个关于 Github Actions 的优化与更新:

README.md

-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232
│ └── ...
3333
├── demos # 收录各大优良 Demo,来源不止于官方
3434
└── translations # 收录自己或和小伙伴们一起翻译的优质文章
35-
├── authorization-required # 暂未得到授权,一般不会跟踪在 Git 上
36-
└── work-in-progress # 翻译进行中
3735
```
3836

3937
本仓库工作流大致如下。

articles/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# 文章
1+
# 文章

articles/THANKS.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# 感谢

articles/architecture/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# 架构篇

articles/backend/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# 后端篇

articles/basic/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# 基础篇

articles/001-install-and-hello-world.md articles/basic/install-and-hello-world.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# (1) Hello,从多样化安装到简单实战
1+
# Hello,从多样化安装到简单实战
22

33
> 《Deno 钻研之术》系列于 Deno v1 正式发售之日全新推出,每周不定期更新在 Github 中([https://github.com/hylerrix/deno-tutorial](https://github.com/hylerrix/deno-tutorial))。让我们一起循序渐进学 Deno,先易后难补 Node,面向未来开发属于自己的 Deno Web App。欢迎订阅,欢迎交流。
44

articles/cli/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# CLI 篇

articles/ecology/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# 生态篇

articles/002-awesome-deno-cn.md articles/ecology/awesome-deno-cn.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# (2) Awesome Deno 中文资源全图谱
1+
# Awesome Deno 中文资源全图谱
22

33
> 《Deno 钻研之术》系列于 Deno v1 正式发售之日全新推出,每周不定期更新在 Github 中([https://github.com/hylerrix/deno-tutorial](https://github.com/hylerrix/deno-tutorial))。让我们一起循序渐进学 Deno,先易后难补 Node,面向未来开发属于自己的 Deno Web App。欢迎订阅,欢迎交流。
44

articles/frontend/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# 前端篇

articles/node/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Node 篇

articles/rust/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Rust 篇

articles/standard/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# 标准库篇

articles/web/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Web 篇

assets/alipay.png

243 KB
Loading

assets/wechat.png

131 KB
Loading

favicon.png

24 KB
Loading

pagic.config.ts

-64
This file was deleted.

pagic.config.tsx

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
// @deno-types="https://deno.land/x/types/react/v16.13.1/react.d.ts"
2+
import React from 'https://dev.jspm.io/react@16.13.1'
3+
4+
export default {
5+
srcDir: '.',
6+
ignore: [/\/demos\//, /\/public\//, /\/\./, /\/LICENSE/, /\/original-articles\//],
7+
theme: 'docs',
8+
// prev_next, gitalk
9+
plugins: ['sidebar', 'script', 'ga'],
10+
title: 'Deno 钻研之术',
11+
description: '循序渐进学 Deno & 先易后难补 Node & 面向未来的 Deno Web 应用开发。',
12+
github: 'https://github.com/hylerrix/deno-tutorial',
13+
head: (<link rel="icon" type="image/png" href="/favicon.png" />),
14+
nav: [
15+
{
16+
text: '打赏一下!!',
17+
link: 'https://github.com/xcatliu/buy-me-a-coffee',
18+
target: '_blank',
19+
popover: (
20+
<>
21+
<img src="/assets/wechat.png" width="256" style={{ marginRight: '1rem', verticalAlign: 'top' }} />
22+
<img src="/assets/alipay.png" width="256" style={{ verticalAlign: 'top' }} />
23+
</>
24+
)
25+
},
26+
{ text: '官网', link: 'https://deno.land' },
27+
{ text: '资源', link: 'https://github.com/hylerrix/awesome-deno-cn' },
28+
{ text: '手册', link: 'https://nugine.github.io/deno-manual-cn' },
29+
{ text: 'deno.js.cn', link: 'https://deno.js.cn' },
30+
{ text: 'denocn.org', link: 'https://denocn.org' },
31+
{ text: 'Deno 库排行', link: 'https://yoshixmk.github.io/deno-x-ranking/' },
32+
{ text: '关于作者', link: 'https://github.com/hylerrix' },
33+
'articles/THANKS.md',
34+
],
35+
sidebar: [
36+
'README.md',
37+
{
38+
link: 'articles/basic/README.md',
39+
children: [
40+
'articles/basic/install-and-hello-world.md',
41+
]
42+
},
43+
{
44+
link: 'articles/ecology/README.md',
45+
children: [
46+
'articles/ecology/awesome-deno-cn.md'
47+
]
48+
},
49+
{
50+
link: 'translations/README.md',
51+
children: [
52+
'translations/001-the-deno-handbook.md',
53+
'translations/002-deno-chat-app.md',
54+
'translations/003-from-node-to-deno.md',
55+
'translations/004-deno-oak-todo-api.md',
56+
'translations/005-deno-oak-mysql.md',
57+
]
58+
}
59+
],
60+
tools: {
61+
editOnGithub: true,
62+
backToTop: true
63+
},
64+
gitalk: {
65+
clientID: '60180eea2c09238f8998',
66+
clientSecret: 'e9ea0ff6555185eda28eff4dfd4b755b1764abf3',
67+
repo: 'deno-tutorial',
68+
owner: 'hylerrix',
69+
admin: ['hylerrix'],
70+
pagerDirection: 'first'
71+
},
72+
ga: {
73+
id: window.Deno?.env.get('GA_ID') ?? 'UA-169223577-1'
74+
}
75+
}

translations/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# 翻译
1+
# 翻译篇

0 commit comments

Comments
 (0)