We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f9fd20 commit de7777dCopy full SHA for de7777d
src/components/PageLinks/PageLinks.jsx
@@ -6,7 +6,7 @@ export default ({
6
section = '',
7
page = {}
8
}) => {
9
- let baseURL = 'https://github.com/webpack/webpack.js.org/edit/master/src/content';
+ let baseURL = 'https://github.com/webpack-china/webpack.js.org/edit/cn/src/content';
10
let indexPath = page.type === 'index' ? '/index' : '';
11
let mainPath = page.url.startsWith('/') ? page.url : `/${page.url}`;
12
let editLink = page.file.attributes.edit || baseURL + TrimEnd(mainPath, '/') + indexPath + '.md';
@@ -24,7 +24,7 @@ export default ({
24
) : null }
25
26
<a className="page-links__link" href={ editLink }>
27
- Edit Document
+ 编辑此页
28
<i className="page-links__icon icon-edit" />
29
</a>
30
</div>
0 commit comments