Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 84bf497

Browse files
committed
更新 pagic 1.0
1 parent 6e5a5aa commit 84bf497

File tree

5 files changed

+33
-29
lines changed

5 files changed

+33
-29
lines changed

.eslintrc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ module.exports = {
1717
'no-undef': 'off',
1818
'@typescript-eslint/no-invalid-this': 'off',
1919
'@typescript-eslint/no-require-imports': 'off',
20-
'@typescript-eslint/method-signature-style': 'off'
21-
}
20+
'@typescript-eslint/method-signature-style': 'off',
21+
},
2222
};

.github/workflows/gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
export DENO_INSTALL="/home/runner/.deno"
2525
export PATH="$DENO_INSTALL/bin:$PATH"
2626
deno --version
27-
deno install --unstable --allow-read --allow-write --allow-net --allow-run -n pagic https://deno.land/x/[email protected]-alpha.4/mod.ts
27+
deno install --unstable --allow-read --allow-write --allow-net --allow-run -n pagic https://deno.land/x/[email protected]/mod.ts
2828
pagic build
2929
3030
- name: Deploy gh-pages

.prettierrc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = {
1515
// use double quotes instead of single quotes in jsx
1616
jsxSingleQuote: false,
1717
// no comma at the end
18-
trailingComma: 'none',
18+
trailingComma: 'all',
1919
// spaces are required at the beginning and end of the braces
2020
bracketSpacing: true,
2121
// end tag of jsx need to wrap
@@ -34,5 +34,5 @@ module.exports = {
3434
// decide whether to break the html according to the display style
3535
htmlWhitespaceSensitivity: 'css',
3636
// lf for newline
37-
endOfLine: 'lf'
37+
endOfLine: 'lf',
3838
};

assets/join-qq.jpg

68.3 KB
Loading

pagic.config.tsx

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { React } from 'https://deno.land/x/pagic/mod.ts';
1+
import { React } from 'https://deno.land/x/pagic@v1.0.0/mod.ts';
22

33
export default {
44
srcDir: '.',
@@ -19,27 +19,26 @@ export default {
1919
<img src="/assets/wechat.jpg" width="256" style={{ marginRight: '1rem', verticalAlign: 'top' }} />
2020
<img src="/assets/alipay.jpg" width="256" style={{ verticalAlign: 'top' }} />
2121
</>
22-
)
22+
),
2323
},
2424
{
2525
text: '加入微信群',
2626
popover: (
27-
<>
28-
<p style={{ marginTop: 0, marginBottom: '1rem' }}>若二维码失效请微信联系 xcatliu 更新</p>
29-
<img src="/assets/join-wechat.jpg" width="256" />
30-
</>
31-
)
27+
<p style={{ marginTop: 0, width: 256 }}>微信群已超过 200 人,如要加群,请加群主微信 xcatliu 并备注 ts</p>
28+
),
3229
},
3330
{
3431
text: '加入 QQ 群',
3532
link: 'https://jq.qq.com/?_wv=1027&k=5nkkFCl',
3633
target: '_blank',
3734
popover: (
3835
<>
39-
<p style={{ marginTop: 0, marginBottom: '1rem' }}>群号: 767142358</p>
36+
<p style={{ marginTop: 0, marginBottom: '1rem', width: 256 }}>
37+
一群(767142358)已满,请扫码加二群(706191218)
38+
</p>
4039
<img src="/assets/join-qq.jpg" width="256" />
4140
</>
42-
)
41+
),
4342
},
4443
{
4544
text: '下载本书',
@@ -57,8 +56,13 @@ export default {
5756
<img src="https://www.geekxh.com/ts/09.png?pprv" width="256" />
5857
</a>
5958
</>
60-
)
61-
}
59+
),
60+
},
61+
{
62+
text: '本网站使用 Pagic 构建',
63+
link: 'https://github.com/xcatliu/pagic',
64+
target: '_blank',
65+
},
6266
],
6367
sidebar: {
6468
'/': [
@@ -67,8 +71,8 @@ export default {
6771
children: [
6872
'introduction/what-is-typescript.md',
6973
'introduction/get-typescript.md',
70-
'introduction/hello-typescript.md'
71-
]
74+
'introduction/hello-typescript.md',
75+
],
7276
},
7377
{
7478
link: 'basics/README.md',
@@ -82,8 +86,8 @@ export default {
8286
'basics/type-of-function.md',
8387
'basics/type-assertion.md',
8488
'basics/declaration-files.md',
85-
'basics/built-in-objects.md'
86-
]
89+
'basics/built-in-objects.md',
90+
],
8791
},
8892
{
8993
link: 'advanced/README.md',
@@ -96,19 +100,19 @@ export default {
96100
'advanced/class-and-interfaces.md',
97101
'advanced/generics.md',
98102
'advanced/declaration-merging.md',
99-
'advanced/further-reading.md'
100-
]
103+
'advanced/further-reading.md',
104+
],
101105
},
102106
{
103107
link: 'engineering/README.md',
104-
children: ['engineering/lint.md', 'engineering/compiler-options.md']
108+
children: ['engineering/lint.md', 'engineering/compiler-options.md'],
105109
},
106-
'thanks/README.md'
107-
]
110+
'thanks/README.md',
111+
],
108112
},
109113
tools: {
110114
editOnGitHub: true,
111-
backToTop: true
115+
backToTop: true,
112116
},
113117
// tocAd: (
114118
// <div
@@ -134,10 +138,10 @@ export default {
134138
repo: 'typescript-tutorial',
135139
owner: 'xcatliu',
136140
admin: ['xcatliu'],
137-
pagerDirection: 'first'
141+
pagerDirection: 'first',
138142
},
139143
ga: {
140-
id: 'UA-45256157-14'
144+
id: 'UA-45256157-14',
141145
},
142-
port: 8001
146+
port: 8001,
143147
};

0 commit comments

Comments
 (0)