Merge pull request 'update how to use grunt' (#4) from grunt into main
Reviewed-on: #4
This commit is contained in:
commit
040f95aef8
1 changed files with 11 additions and 1 deletions
12
README.md
12
README.md
|
@ -20,7 +20,17 @@ Restart searx: `service uwsgi restart`
|
|||
## How to edit/change this theme
|
||||
Simply clone the theme to your machine.
|
||||
All changes done to the the templates do not require compilation, only searxng reload.
|
||||
When changing static elements (css, images etc), edit files in `src/`. Once done run `grunt` to compile. You may need to install all dependencies first by running `npm install`.
|
||||
When changing static elements (css, images etc), edit files in `src/`. Once done run `grunt` to compile. To do so, in your running searxng instance, your first need to:
|
||||
```
|
||||
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
|
||||
source ~/.profile
|
||||
nvm install 18.16.0 # or whatever version you want
|
||||
npm install -g npm
|
||||
cd searx/static/themes/beetroot
|
||||
npm install
|
||||
npm install -g grunt-cli
|
||||
```
|
||||
Then you can run `grunt` from `searx/static/themes/beetroot`. Those compiled files can be found in `searx/static/themes/beetroot/css`
|
||||
|
||||
If you want to test in live mode all your changes to the `beetroot` theme, you need working searx instance with your changes pulled into it. You can then either select the theme from UI or run searx with theme by running `LIVE_THEME=beetroot make run` from searx-src folder and edit.
|
||||
|
||||
|
|
Loading…
Reference in a new issue