Skip to content

Commit de7777d

Browse files
amluckdear-lizhihua
authored andcommitted
”EDIT DOCUMENT“ 改为“编辑此页”,并转到webpack-china对应markdown文件编辑界面 (#382)
1 parent 5f9fd20 commit de7777d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/PageLinks/PageLinks.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default ({
66
section = '',
77
page = {}
88
}) => {
9-
let baseURL = 'https://github.com/webpack/webpack.js.org/edit/master/src/content';
9+
let baseURL = 'https://github.com/webpack-china/webpack.js.org/edit/cn/src/content';
1010
let indexPath = page.type === 'index' ? '/index' : '';
1111
let mainPath = page.url.startsWith('/') ? page.url : `/${page.url}`;
1212
let editLink = page.file.attributes.edit || baseURL + TrimEnd(mainPath, '/') + indexPath + '.md';
@@ -24,7 +24,7 @@ export default ({
2424
) : null }
2525

2626
<a className="page-links__link" href={ editLink }>
27-
Edit Document
27+
编辑此页
2828
<i className="page-links__icon icon-edit" />
2929
</a>
3030
</div>

0 commit comments

Comments
 (0)