diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3e8fcee1..7327a41d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -35,6 +35,8 @@ git clone https://github.com/your_username/certimate.git 这将启动一个 Web 服务器,默认运行在 `http://localhost:8090`,并使用来自 `ui/dist` 的预构建管理页面。 +> 如果你遇到报错 `ui/embed.go:10:12: pattern all:dist: no matching files found` 请先参考 [构建 Admin UI](#修改管理页面-admin-ui) + **在向主仓库提交 PR 之前,建议你:** - 使用 [gofumpt](https://github.com/mvdan/gofumpt) 对你的代码进行格式化。 diff --git a/CONTRIBUTING_EN.md b/CONTRIBUTING_EN.md index 59a783e9..d09de8ad 100644 --- a/CONTRIBUTING_EN.md +++ b/CONTRIBUTING_EN.md @@ -36,6 +36,8 @@ Once you have made changes to the Go code in Certimate, follow these steps to ru This will start a web server at `http://localhost:8090` using the prebuilt Admin UI located in `ui/dist`. +> if you encounter an error `ui/embed.go:10:12: pattern all:dist: no matching files found`, please refer to [build Admin UI](#making-changes-in-the-admin-ui) + **Before submitting a PR to the main repository, consider:** - Format your source code by using [gofumpt](https://github.com/mvdan/gofumpt). diff --git a/ui/dist/.gitkeep b/ui/dist/.gitkeep new file mode 100644 index 00000000..e69de29b