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

Skip to content

Commit bb52045

Browse files
committed
升级 pagic 到 1.0.0-alpha.1
1 parent 16668e7 commit bb52045

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

.github/workflows/gh-pages.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,21 @@ jobs:
1010
runs-on: ubuntu-18.04
1111
steps:
1212
- uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
1315

1416
- name: Setup deno
1517
uses: denolib/setup-deno@v2
1618
with:
17-
deno-version: v1.2.3
19+
deno-version: v1.5.2
1820

1921
- name: Build gh-pages
2022
run: |
2123
curl -fsSL https://deno.land/x/install/install.sh | sh
2224
export DENO_INSTALL="/home/runner/.deno"
2325
export PATH="$DENO_INSTALL/bin:$PATH"
2426
deno --version
25-
deno install --unstable --allow-read --allow-write --allow-net -n pagic https://deno.land/x/pagic@v0.8.4/mod.ts
27+
deno install --unstable --allow-read --allow-write --allow-net --allow-run -n pagic https://deno.land/x/pagic@v1.0.0-alpha.1/mod.ts
2628
pagic build
2729
2830
- name: Deploy gh-pages

pagic.config.tsx

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// @deno-types="https://deno.land/x/[email protected]/src/types/react/v16.13.1/react.d.ts"
2-
import React from 'https://dev.jspm.io/[email protected]';
1+
import { React } from 'https://deno.land/x/pagic/mod.ts';
32

43
export default {
54
srcDir: '.',
@@ -70,7 +69,7 @@ export default {
7069
]
7170
},
7271
tools: {
73-
editOnGithub: true,
72+
editOnGitHub: true,
7473
backToTop: true
7574
},
7675
tocAd: (
@@ -79,12 +78,14 @@ export default {
7978
__html: `
8079
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
8180
<!-- 192*128 -->
82-
<ins class="adsbygoogle"
83-
style="display:inline-block;width:192px;height:128px"
84-
data-ad-client="ca-pub-8483371329009107"
85-
data-ad-slot="6487368873"></ins>
81+
<ins
82+
class="adsbygoogle"
83+
style="display:inline-block;width:192px;height:128px"
84+
data-ad-client="ca-pub-8483371329009107"
85+
data-ad-slot="6487368873"
86+
></ins>
8687
<script>
87-
(adsbygoogle = window.adsbygoogle || []).push({});
88+
(adsbygoogle = window.adsbygoogle || []).push({});
8889
</script>`
8990
}}
9091
/>

0 commit comments

Comments
 (0)