Skip to content

Commit 9b5185d

Browse files
Improve logo customization docs (#15754)
* Improve logo customization docs * Update docs/content/doc/advanced/customizing-gitea.en-us.md * Update docs/content/doc/advanced/customizing-gitea.en-us.md Co-authored-by: techknowlogick <[email protected]>
1 parent 114c85e commit 9b5185d

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

docs/content/doc/advanced/customizing-gitea.en-us.md

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -58,22 +58,18 @@ To make Gitea serve custom public files (like pages and images), use the folder
5858
For example, a file `image.png` stored in `$GITEA_CUSTOM/public/`, can be accessed with
5959
the url `http://gitea.domain.tld/image.png`.
6060

61-
## Changing the default logo
61+
## Changing the logo
6262

63-
To build a custom logo replace `assets/logo.svg` and run `make generate-images`. This will update
64-
these customizable logo files which you can then place in `$GITEA_CUSTOM/public/img` on your server:
63+
To build a custom logo clone the Gitea source repository, replace `assets/logo.svg` and run
64+
`make generate-images`. This will update below output files which you can then place in `$GITEA_CUSTOM/public/img` on your server:
6565

66-
- `public/img/logo.svg`
67-
- `public/img/logo.png`
68-
- `public/img/favicon.png`
69-
- `public/img/avatar_default.png`
70-
- `public/img/apple-touch-icon.png`
66+
- `public/img/logo.svg` - Used for favicon, site icon, app icon
67+
- `public/img/logo.png` - Used for Open Graph
68+
- `public/img/favicon.png` - Used as fallback for browsers that don't support SVG favicons
69+
- `public/img/avatar_default.png` - Used as the default avatar image
70+
- `public/img/apple-touch-icon.png` - Used on iOS devices for bookmarks
7171

72-
## Changing the default avatar
73-
74-
Either generate it via above method or place the png image at the following path:
75-
76-
- `$GITEA_CUSTOM/public/img/avatar_default.png`
72+
In case the source image is not in vector format, you can attempt to convert a raster image using tools like [this](https://www.aconvert.com/image/png-to-svg/).
7773

7874
## Customizing Gitea pages and resources
7975

0 commit comments

Comments
 (0)