Skip to content

Conversation

lianghx-319
Copy link

when look up the Vue-CLI 3.x docs, i found there something still in English, so translate them in Cinese semplify

## Platform Guides
## 部署到各平台

(暂未翻译,此部分英文文档处于开放贡献中)
Copy link
Member

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代码后自动发布
Copy link
Member

Choose a reason for hiding this comment

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

中英文之间应该要有一个空格,或者把 push 翻译成「推送」也行。

```

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).
Copy link
Member

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 新建一个项目:
Copy link
Member

Choose a reason for hiding this comment

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

GitHub

- **Publish directory:** `dist`

2. Hit the deploy button!
2. 点击 `部署` 按钮!
Copy link
Member

Choose a reason for hiding this comment

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

Netlify 应该没有写着「部署」的按钮?这样的话应该不需要特地在两边加 `

如果你部署项目到 `https://<USERNAME>.bitbucket.io/<SUBFOLDER>/`, 设置 `baseUrl` `"/<SUBFOLDER>/"`。这种情况下目录结构会反映到url的路由,打个比方,你的仓库应该有 `/<SUBFOLDER>` 这样一个文件夹。

3. Inside your project, create `deploy.sh` with the following content and run it to deploy:
3. 在你的项目目录下创建一个 `deploy.sh` 脚本,内容如下,运行脚本就可以部署到Bitbucket Cloud:
Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

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

dist 前面要有空格

@haoqunjiang
Copy link
Member

非常感谢翻译!翻译得很棒,细节上稍微微调一下就可以合并进仓库了 😄

@haoqunjiang
Copy link
Member

closed in favor of #3315

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