Skip to content

Commit c31c1be

Browse files
committed
feat: gh-pages upgrade
1 parent f7a813d commit c31c1be

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/page-lifecycle.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ document.onfreeze = function() { … }
112112

113113
`resume`事件在网页离开 Frozen 阶段,变为 Active / Passive / Hidden 阶段时触发。
114114

115-
`document.onresume`属性指定用户重新访问页面,是的页面离开 Frozen 阶段、进入可用阶段时调用的回调函数
115+
`document.onresume`属性指的是页面离开 Frozen 阶段、进入可用状态时调用的回调函数
116116

117117
```javascript
118118
function handleResume(e) {

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"prepush": "npm update",
1010
"build": "loppo --site \"Web API 教程\" --id webapi --theme wangdoc",
1111
"build-and-commit": "npm run build && npm run commit",
12-
"commit": "gh-pages --dist dist --dest dist/webapi --branch master --repo git@github.com:wangdoc/website.git",
12+
"commit": "gh-pages --dist dist --dest dist/webapi --branch master --add --repo git@github.com:wangdoc/website.git",
1313
"chapter": "loppo chapter",
1414
"test": "echo \"Error: no test specified\" && exit 1"
1515
},
@@ -27,9 +27,9 @@
2727
"license": "Creative Commons Attribution-ShareAlike License",
2828
"devDependencies": {},
2929
"dependencies": {
30-
"gh-pages": "^1.2.0",
30+
"gh-pages": "latest",
3131
"husky": "^0.14.3",
32-
"loppo": "^0.6.14",
33-
"loppo-theme-wangdoc": "^0.3.11"
32+
"loppo": "latest",
33+
"loppo-theme-wangdoc": "latest"
3434
}
3535
}

0 commit comments

Comments
 (0)