-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
translate docs of the Platform Guides in deployment #2706
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
Conversation
@@ -33,17 +33,18 @@ serve -s dist | |||
|
|||
<!-- @todo: translation --> | |||
|
|||
## Platform Guides | |||
## 部署到各平台 | |||
|
|||
(暂未翻译,此部分英文文档处于开放贡献中) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
既然已经翻译完了,这一句也可以删掉了。
::: tip | ||
You can also run the above script in your CI setup to enable automatic deployment on each push. | ||
::: 提示 | ||
你也可以集成脚本设置来实现在每次push代码后自动发布 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
中英文之间应该要有一个空格,或者把 push 翻译成「推送」也行。
@@ -122,46 +123,46 @@ module.exports = { | |||
} | |||
``` | |||
|
|||
Please read through the docs on [GitLab Pages domains](https://docs.gitlab.com/ee/user/project/pages/getting_started_part_one.html#gitlab-pages-domain) for more info about the URL where your project website will be hosted. Be aware you can also [use a custom domain](https://docs.gitlab.com/ee/user/project/pages/getting_started_part_three.html#adding-your-custom-domain-to-gitlab-pages). | |||
想要了解跟多关于你的项目页面部署URL的信息可以阅读这份文档 [GitLab Pages domains](https://docs.gitlab.com/ee/user/project/pages/getting_started_part_one.html#gitlab-pages-domain) 。 提示:你依旧可以部署在自己的域名下 [使用自己的域名](https://docs.gitlab.com/ee/user/project/pages/getting_started_part_three.html#adding-your-custom-domain-to-gitlab-pages). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
中英文之间要有空格。链接是加在句子中的(「这份文档」加链接、「部署在自己的域名下」加链接),而不是在后面再加个带链接的短语。
|
||
### Netlify | ||
|
||
1. On Netlify, setup up a new project from GitHub with the following settings: | ||
1. 在 Netlify 上,用以下的命令,从 Github 新建一个项目: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GitHub
|
||
- **Build Command:** `npm run build` or `yarn build` | ||
- **Publish directory:** `dist` | ||
|
||
2. Hit the deploy button! | ||
2. 点击 `部署` 按钮! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Netlify 应该没有写着「部署」的按钮?这样的话应该不需要特地在两边加 `
|
||
3. Inside your project, create `deploy.sh` with the following content and run it to deploy: | ||
3. 在你的项目目录下创建一个 `deploy.sh` 脚本,内容如下,运行脚本就可以部署到Bitbucket Cloud: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bitbucket 前面要加空格
npm run build | ||
|
||
# navigate into the build output directory | ||
# 进入构建项目的输出文件夹dist |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dist 前面要有空格
非常感谢翻译!翻译得很棒,细节上稍微微调一下就可以合并进仓库了 😄 |
closed in favor of #3315 |
when look up the Vue-CLI 3.x docs, i found there something still in English, so translate them in Cinese semplify