@@ -121,25 +121,25 @@ Apart from `extra_links.tmpl` and `extra_tabs.tmpl`, there are other useful temp
121
121
- ` body_inner_pre.tmpl ` , before the top navigation bar, but already inside the main container ` <div class="full height"> ` .
122
122
- ` body_inner_post.tmpl ` , before the end of the main container.
123
123
- ` body_outer_post.tmpl ` , before the bottom ` <footer> ` element.
124
- - ` footer.tmpl ` , right before the end of the ` <body> ` tag, a good place for additional Javascript .
124
+ - ` footer.tmpl ` , right before the end of the ` <body> ` tag, a good place for additional JavaScript .
125
125
126
126
#### Example: PlantUML
127
127
128
128
You can add [ PlantUML] ( https://plantuml.com/ ) support to Gitea's markdown by using a PlantUML server.
129
129
The data is encoded and sent to the PlantUML server which generates the picture. There is an online
130
130
demo server at http://www.plantuml.com/plantuml , but if you (or your users) have sensitive data you
131
131
can set up your own [ PlantUML server] ( https://plantuml.com/server ) instead. To set up PlantUML rendering,
132
- copy javascript files from https://gitea.com/davidsvantesson/plantuml-code-highlight and put them in your
132
+ copy JavaScript files from https://gitea.com/davidsvantesson/plantuml-code-highlight and put them in your
133
133
` $GITEA_CUSTOM/public ` folder. Then add the following to ` custom/footer.tmpl ` :
134
134
135
135
``` html
136
136
<script >
137
137
$ (async () => {
138
138
if (! $ (' .language-plantuml' ).length ) return ;
139
139
await Promise .all ([
140
- $ .getScript (' https://your-server.com/deflate.js' ),
141
- $ .getScript (' https://your-server.com/encode.js' ),
142
- $ .getScript (' https://your-server.com/plantuml_codeblock_parse.js' ),
140
+ $ .getScript (' https://your-gitea- server.com/assets/ deflate.js' ),
141
+ $ .getScript (' https://your-gitea- server.com/assets /encode.js' ),
142
+ $ .getScript (' https://your-gitea- server.com/assets /plantuml_codeblock_parse.js' ),
143
143
]);
144
144
// Replace call with address to your plantuml server
145
145
parsePlantumlCodeBlocks (" https://www.plantuml.com/plantuml" );
0 commit comments