woocommerce/docs/_docu-tools/zh-cn/README.md
2026-04-15 10:18:01 +08:00

31 lines
No EOL
982 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 网站
这个网站是使用 [Docusaurus](https://docusaurus.io/) 构建的,它是一个现代的静态网站生成器。
## 安装
```bash
npm install
```
## 本地开发
```bash
npm run start
```
这个命令启动一个本地开发服务器,并打开一个浏览器窗口。 大多数更改会实时反映,无需重启服务器。
## 构建
```bash
npm run build
```
这个命令将静态内容生成到 `build` 目录,可以使用任何静态内容托管服务来提供。
## 部署
`woocommerce/docs` 目录中的内容是通过一个 GitHub Actions 定时任务Cron job来获取的该任务定义在 [deploy-docs 工作流](https://github.com/woocommerce/woo-docs-build/blob/trunk/.github/workflows/deploy-docs.yml) 中。
然后,这些内容会被构建成生产版本,并在同一个 GitHub Action 中,针对 [woocommerce-woo-docs-multi-com 仓库](https://github.com/wpcomvip/woocommerce-woo-docs-multi-com) 创建一个 Pull Request。