You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/content/doc/advanced/customizing-gitea.en-us.md
+4
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,10 @@ To make Gitea serve custom public files (like pages and images), use the folder
57
57
For example, a file `image.png` stored in `custom/public/`, can be accessed with
58
58
the url `http://gitea.domain.tld/image.png`.
59
59
60
+
## Changing the default logo
61
+
62
+
To automatically update custom logo png and svg files replace `assets/logo.svg` and run `make generate-images`. This will update the user-designated logo files served in `public/img`. Alternatively, you can manually update each `logo-X.png` and `logo.svg` file in `public/img`.
63
+
60
64
## Changing the default avatar
61
65
62
66
Place the png image at the following path: `custom/public/img/avatar_default.png`
Copy file name to clipboardexpand all lines: docs/content/doc/developers/hacking-on-gitea.en-us.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -185,7 +185,9 @@ SVG icons are built using the `make svg` target which compiles the icon sources
185
185
186
186
### Building the Logo
187
187
188
-
The PNG versions of the logo are built from a single SVG source file `assets/logo.svg` using the `make generate-images` target. To run it, Node.js and npm must be available. The same process can also be used to generate a custom logo PNGs from a SVG source file. It's possible to remove parts of the SVG logo for the favicon build by adding a `detail-remove` class to the SVG nodes to be removed.
188
+
The PNG and SVG versions of the gitea logo are built from a single SVG source file `assets/logo.svg` using the `TAGS="gitea" make generate-images` target. To run it, Node.js and npm must be available.
189
+
190
+
The same process can also be used to generate custom logo PNGs from a SVG source file by updating `assets/logo.svg` and running `make generate-images`. Omitting the `gitea` tag will update only the user-designated logo files.
0 commit comments