Skip to content

”EDIT DOCUMENT“ 改为“编辑此页”,并转到webpack-china对应markdown文件编辑界面 #382

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 16, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/PageLinks/PageLinks.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default ({
section = '',
page = {}
}) => {
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';
let indexPath = page.type === 'index' ? '/index' : '';
let mainPath = page.url.startsWith('/') ? page.url : `/${page.url}`;
let editLink = page.file.attributes.edit || baseURL + TrimEnd(mainPath, '/') + indexPath + '.md';
Expand All @@ -24,7 +24,7 @@ export default ({
) : null }

<a className="page-links__link" href={ editLink }>
Edit Document
编辑此页
<i className="page-links__icon icon-edit" />
</a>
</div>
Expand Down