Skip to content

Commit 67ca2a5

Browse files
author
zjj
committed
* 'main' of https://github.com/go-gitea/gitea: [doc] https-setup: explain relative paths for {CERT,KEY}_FILE fields. (go-gitea#18244) chore: remove unnecessary section (go-gitea#18209) Fix purple color in suggested label colors (go-gitea#18241) Prevent NPE when viewing non-rendered files (go-gitea#18234)
2 parents 458bc3d + ba9e4e2 commit 67ca2a5

File tree

4 files changed

+21
-23
lines changed

4 files changed

+21
-23
lines changed

docs/content/doc/developers/hacking-on-gitea.en-us.md

-6
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,6 @@ You should run the same version of go that is on the continuous integration
169169
server as mentioned above. `make fmt-check` will only check if your `go` would
170170
format differently - this may be different from the CI server version.
171171

172-
You should run revive, vet and spell-check on the code with:
173-
174-
```bash
175-
make revive vet misspell-check
176-
```
177-
178172
### Working on JS and CSS
179173

180174
Frontend development should follow [Guidelines for Frontend Development](./guidelines-frontend.md)

docs/content/doc/usage/https-support.md

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ KEY_FILE = key.pem
4040
Note that if your certificate is signed by a third party certificate authority (i.e. not self-signed), then cert.pem should contain the certificate chain. The server certificate must be the first entry in cert.pem, followed by the intermediaries in order (if any). The root certificate does not have to be included because the connecting client must already have it in order to estalbish the trust relationship.
4141
To learn more about the config values, please checkout the [Config Cheat Sheet](../config-cheat-sheet#server-server).
4242

43+
For the `CERT_FILE` or `KEY_FILE` field, the file path is relative to the `GITEA_CUSTOM` environment variable when it is a relative path. It can be an absolute path as well.
44+
4345
### Setting up HTTP redirection
4446

4547
The Gitea server is only able to listen to one port; to redirect HTTP requests to the HTTPS port, you will need to enable the HTTP redirection service:

templates/repo/issue/label_precolors.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<a class="color" style="background-color:#006b75" data-color-hex="#006b75"></a>
66
<a class="color" style="background-color:#207de5" data-color-hex="#207de5"></a>
77
<a class="color" style="background-color:#0052cc" data-color-hex="#0052cc"></a>
8-
<a class="color" style="background-color:#53e917" data-color-hex="#53e917"></a>
8+
<a class="color" style="background-color:#5319e7" data-color-hex="#5319e7"></a>
99
<a class="color" style="background-color:#f6c6c7" data-color-hex="#f6c6c7"></a>
1010
<a class="color" style="background-color:#fad8c7" data-color-hex="#fad8c7"></a>
1111
<a class="color" style="background-color:#fef2c0" data-color-hex="#fef2c0"></a>
+18-16
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1-
{{if .EscapeStatus.BadBIDI}}
2-
<div class="ui error message unicode-escape-prompt">
3-
<span class="close icon hide-panel button" data-panel-closest=".message">{{svg "octicon-x" 16 "close inside"}}</span>
4-
<div class="header">
5-
{{$.root.i18n.Tr "repo.bidi_bad_header"}}
6-
</div>
7-
<p>{{$.root.i18n.Tr "repo.bidi_bad_description" | Str2html}}</p>
8-
</div>
9-
{{else if .EscapeStatus.Escaped}}
10-
<div class="ui warning message unicode-escape-prompt">
11-
<span class="close icon hide-panel button" data-panel-closest=".message">{{svg "octicon-x" 16 "close inside"}}</span>
12-
<div class="header">
13-
{{$.root.i18n.Tr "repo.unicode_header"}}
14-
</div>
15-
<p>{{$.root.i18n.Tr "repo.unicode_description" | Str2html}}</p>
16-
</div>
1+
{{if .EscapeStatus}}
2+
{{if .EscapeStatus.BadBIDI}}
3+
<div class="ui error message unicode-escape-prompt">
4+
<span class="close icon hide-panel button" data-panel-closest=".message">{{svg "octicon-x" 16 "close inside"}}</span>
5+
<div class="header">
6+
{{$.root.i18n.Tr "repo.bidi_bad_header"}}
7+
</div>
8+
<p>{{$.root.i18n.Tr "repo.bidi_bad_description" | Str2html}}</p>
9+
</div>
10+
{{else if .EscapeStatus.Escaped}}
11+
<div class="ui warning message unicode-escape-prompt">
12+
<span class="close icon hide-panel button" data-panel-closest=".message">{{svg "octicon-x" 16 "close inside"}}</span>
13+
<div class="header">
14+
{{$.root.i18n.Tr "repo.unicode_header"}}
15+
</div>
16+
<p>{{$.root.i18n.Tr "repo.unicode_description" | Str2html}}</p>
17+
</div>
18+
{{end}}
1719
{{end}}

0 commit comments

Comments
 (0)