chore: update path (#486)

Fix #34

Reviewed-on: https://gitea.com/gitea/docs/pulls/486
Reviewed-by: silverwind <[email protected]>
Co-authored-by: Lunny Xiao <[email protected]>
This commit is contained in:
Lunny Xiao
2026-08-03 15:39:27 +00:00
committed by silverwind
parent f8efe463a6
commit f47fdce6c8
11 changed files with 14 additions and 14 deletions
@@ -105,7 +105,7 @@ Gitea 的每個頁面都可以更改。動態內容是使用 [go 模板](https:/
### 範例:PlantUML
您可以使用 PlantUML 伺服器將 [PlantUML](https://plantuml.com/) 支援添加到 Gitea 的 markdown 中。
資料被編碼並發送到 PlantUML 伺服器,該伺服器生成圖片。有一個在線演示伺服器位於 http://www.plantuml.com/plantuml,但如果您(或您的使用者)有敏感資料,您可以設定自己的 [PlantUML 伺服器](https://plantuml.com/server)。要設定 PlantUML 渲染,從 https://gitea.com/davidsvantesson/plantuml-code-highlight 複製 JavaScript 文件並將它們放在您的 `$GITEA_CUSTOM/public/assets/` 文件夾中。然後將以下內容添加到 `custom/footer.tmpl`
資料被編碼並發送到 PlantUML 伺服器,該伺服器生成圖片。有一個在線演示伺服器位於 http://www.plantuml.com/plantuml,但如果您(或您的使用者)有敏感資料,您可以設定自己的 [PlantUML 伺服器](https://plantuml.com/server)。要設定 PlantUML 渲染,從 https://gitea.com/davidsvantesson/plantuml-code-highlight 複製 JavaScript 文件並將它們放在您的 `$GITEA_CUSTOM/public/assets/` 文件夾中。然後將以下內容添加到 `$GITEA_CUSTOM/templates/custom/footer.tmpl`
```html
<script>
@@ -177,7 +177,7 @@ Alice <-- Bob: Another authentication Response
</script>
```
到文件 `templates/custom/footer.tmpl`
到文件 `$GITEA_CUSTOM/templates/custom/footer.tmpl`
您還需要下載庫 [Madeleine.js](https://github.com/beige90/Madeleine.js) 的內容並將其放置在 `$GITEA_CUSTOM/public/assets/` 文件夾下。