Skip to content

docs: about the translation of deployment.md in the github pages section #3133

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

Closed
wants to merge 2 commits into from
Closed

Conversation

OweQian
Copy link

@OweQian OweQian commented Dec 14, 2018

This is my first time to participate in document translation, and it is not good, please advise, thank you.

This is my first time to participate in document translation, and it is not good, please advise, thank you.

If you are deploying to `https://<USERNAME>.github.io/<REPO>/`, (i.e. your repository is at `https://github.com/<USERNAME>/<REPO>`), set `baseUrl` to `"/<REPO>/"`. For example, if your repo name is "my-project", your `vue.config.js` should look like this:
如果你的部署路径为 `https://<USERNAME>.github.io/<REPO>/`,(即:你的GitHub仓库地址为 `https://github.com/<USERNAME>/<REPO>`), 此时,你需要将 `baseUrl` 设置为 `"/<REPO>/"`。例如:你的Github仓库名字为"my-project",那么,你的`vue.config.js`应该为下面所示的代码:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

有点别扭

"那么,你的 vue.config.js 应该是这样:"(or "应该写成这样")

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的 谢谢 我修改并重新提交一下

@@ -53,7 +53,7 @@ serve -s dist
}
```

2. Inside your project, create `deploy.sh` with the following content (with highlighted lines uncommented appropriately) and run it to deploy:
2. 在你的项目中,新建 `deploy.sh` 并填充下述内容 (突出显示的行未适当注释),然后运行它来进行部署:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"突出显示的行未适当注释",没读懂

"根据情况取消高亮行的注释" 这样?

You can also run the above script in your CI setup to enable automatic deployment on each push.
:::

你还可以选择在你的CI设置中运行上述脚本,便于在每次推送时启用自动部署。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

::: tip
:::

This indicates a tip section in vuepress, which should not not be omited.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, thank you

Copy link
Member

@jkzing jkzing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

Remember to keep the paragraph formatting consistence.
FYI chinese-copywriting-guidelines

docs: modify some translations
@OweQian OweQian changed the title About the translation of deployment.md in the github pages section docs: about the translation of deployment.md in the github pages section Dec 26, 2018
@haoqunjiang
Copy link
Member

😂非常抱歉,不过这部分的文档已经被多人翻译过 #2706#3092#3315,最后综合翻译质量和完整度考量,选择了 #3315 进行合并,希望不要介意……

欢迎以后继续参与贡献文档翻译。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants