From bbab21b93bd37a50b8733fdb7491f76c1bc5a0d0 Mon Sep 17 00:00:00 2001 From: hhhkkk520 Date: Thu, 19 May 2022 11:46:21 +0200 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=B8=BB=E9=A2=98=E5=BC=80?= =?UTF-8?q?=E5=8F=91=E4=B8=AD=E6=96=87=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/developer/theme.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/docs/developer/theme.md b/docs/developer/theme.md index 92ec2786..24ec98c2 100644 --- a/docs/developer/theme.md +++ b/docs/developer/theme.md @@ -1 +1,18 @@ -敬请期待 \ No newline at end of file +## 哪吒主题开发环境 + +哪吒面板提供了主题开发环境,你可以使用它来创建新的哪吒监控主题 + +::: warning +请注意: 此开发环境仅支持 `dashboard v0.13.16` 及更新版本。 +::: +## 使用说明 + +1. 克隆[此仓库](https://github.com/nezhahq/skeleton-custom-theme)到本地 +2. 修改 `data/config.yaml` 中的oauth2 配置(回调连接可以填 `http://localhost` 的) +3. `docker-compose up` +4. 开始开发 +5. 主题制作完成之后可以将 `theme-custom` 放置到服务器上的 `/opt/nezha/dashboard/theme-custom` 位置 + +## FAQ + +- 如果不能使用 `80` 端口,在 `docker-compose.yaml` 中修改配置。