diff options
author | Kyle D <kdumontnu@gmail.com> | 2020-12-18 20:17:27 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-18 20:17:27 -0500 |
commit | 4cd94e3689b256b6578da3c35ad52872bcea634f (patch) | |
tree | 2ae79e1fdd9ab1a11f9d361daef719f1a60fb84f /docs | |
parent | e25e7b9598241947e83977b3ea6f8349cfdaa050 (diff) | |
download | gitea-4cd94e3689b256b6578da3c35ad52872bcea634f.tar.gz gitea-4cd94e3689b256b6578da3c35ad52872bcea634f.zip |
gitea png to logo (#13974)
* gitea png to logo.svg
* gitea safari svg to logo
* minify svgs
* Update english docs
* Update missing section on customizing logo
Diffstat (limited to 'docs')
-rw-r--r-- | docs/content/doc/advanced/customizing-gitea.en-us.md | 4 | ||||
-rw-r--r-- | docs/content/doc/developers/hacking-on-gitea.en-us.md | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/docs/content/doc/advanced/customizing-gitea.en-us.md b/docs/content/doc/advanced/customizing-gitea.en-us.md index 118d5f2e68..be6512a450 100644 --- a/docs/content/doc/advanced/customizing-gitea.en-us.md +++ b/docs/content/doc/advanced/customizing-gitea.en-us.md @@ -57,6 +57,10 @@ To make Gitea serve custom public files (like pages and images), use the folder For example, a file `image.png` stored in `custom/public/`, can be accessed with the url `http://gitea.domain.tld/image.png`. +## Changing the default logo + +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`. + ## Changing the default avatar Place the png image at the following path: `custom/public/img/avatar_default.png` diff --git a/docs/content/doc/developers/hacking-on-gitea.en-us.md b/docs/content/doc/developers/hacking-on-gitea.en-us.md index 875a4818e1..516a33d2ad 100644 --- a/docs/content/doc/developers/hacking-on-gitea.en-us.md +++ b/docs/content/doc/developers/hacking-on-gitea.en-us.md @@ -185,7 +185,9 @@ SVG icons are built using the `make svg` target which compiles the icon sources ### Building the Logo -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. +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. + +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. ### Updating the API |