diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2022-09-11 22:14:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-11 22:14:46 +0800 |
commit | 01eb465c92e29297e3175c7f194589f29abf32ac (patch) | |
tree | 859eeb432aa9d9b7b17eb0f0273cbf932d66d34e /docs | |
parent | 24b5a384d213a50b900acc896c9d34af934f59ac (diff) | |
download | gitea-01eb465c92e29297e3175c7f194589f29abf32ac.tar.gz gitea-01eb465c92e29297e3175c7f194589f29abf32ac.zip |
Fix PlantUML example in document (#21142)
The document was written before Gitea 1.15. Now Gitea uses `/assets`
sub-directory (#15219).
Close #21023
* #21023
Diffstat (limited to 'docs')
-rw-r--r-- | docs/content/doc/advanced/customizing-gitea.en-us.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/content/doc/advanced/customizing-gitea.en-us.md b/docs/content/doc/advanced/customizing-gitea.en-us.md index 038ce16a8d..18fc1b3e73 100644 --- a/docs/content/doc/advanced/customizing-gitea.en-us.md +++ b/docs/content/doc/advanced/customizing-gitea.en-us.md @@ -121,7 +121,7 @@ Apart from `extra_links.tmpl` and `extra_tabs.tmpl`, there are other useful temp - `body_inner_pre.tmpl`, before the top navigation bar, but already inside the main container `<div class="full height">`. - `body_inner_post.tmpl`, before the end of the main container. - `body_outer_post.tmpl`, before the bottom `<footer>` element. -- `footer.tmpl`, right before the end of the `<body>` tag, a good place for additional Javascript. +- `footer.tmpl`, right before the end of the `<body>` tag, a good place for additional JavaScript. #### Example: PlantUML @@ -129,7 +129,7 @@ You can add [PlantUML](https://plantuml.com/) support to Gitea's markdown by usi The data is encoded and sent to the PlantUML server which generates the picture. There is an online demo server at http://www.plantuml.com/plantuml, but if you (or your users) have sensitive data you can set up your own [PlantUML server](https://plantuml.com/server) instead. To set up PlantUML rendering, -copy javascript files from https://gitea.com/davidsvantesson/plantuml-code-highlight and put them in your +copy JavaScript files from https://gitea.com/davidsvantesson/plantuml-code-highlight and put them in your `$GITEA_CUSTOM/public` folder. Then add the following to `custom/footer.tmpl`: ```html @@ -137,9 +137,9 @@ copy javascript files from https://gitea.com/davidsvantesson/plantuml-code-highl $(async () => { if (!$('.language-plantuml').length) return; await Promise.all([ - $.getScript('https://your-server.com/deflate.js'), - $.getScript('https://your-server.com/encode.js'), - $.getScript('https://your-server.com/plantuml_codeblock_parse.js'), + $.getScript('https://your-gitea-server.com/assets/deflate.js'), + $.getScript('https://your-gitea-server.com/assets/encode.js'), + $.getScript('https://your-gitea-server.com/assets/plantuml_codeblock_parse.js'), ]); // Replace call with address to your plantuml server parsePlantumlCodeBlocks("https://www.plantuml.com/plantuml"); |