diff --git a/doc/advanced/hacking-on-gitea.en-us.md b/doc/advanced/hacking-on-gitea.en-us.md index fd7e9626..fdccdf19 100644 --- a/doc/advanced/hacking-on-gitea.en-us.md +++ b/doc/advanced/hacking-on-gitea.en-us.md @@ -140,24 +140,21 @@ You should run revive, vet and spell-check on the code with: make revive vet misspell-check ``` -### Working on CSS +### Working on JS and CSS -Edit files in `web_src/less` and run the linter and build the CSS files via: +Edit files in `web_src` and run the linter and build the files in `public`: ```bash -make css -``` - -### Working on JS - -Edit files in `web_src/js`, run the linter and build the JS files via: - -```bash -make js +make webpack ``` Note: When working on frontend code, it is advisable to set `USE_SERVICE_WORKER` to `false` in `app.ini` which will prevent undesirable caching of frontend assets. +### Building Images + +To build the images, ImageMagick, `inkscape` and `zopflipng` binaries must be available in +your `PATH` to run `make generate-images`. + ### Updating the API When creating new API routes or modifying existing API routes, you **MUST**