Test_theme/README.md

31 lines
1.8 KiB
Markdown
Raw Normal View History

2023-03-18 07:13:18 +01:00
# Searxng_beetroot
Disroot theme for Searxng.
To use this theme, `git clone` it on your computer.
Create a `beetroot` folder in `/var/www/searx/searx/static/themes` and in `/var/www/searx/searx/templates`.
Then, copy the content of `beetroot_static` in `/var/www/searx/searx/static/themes/beetroot` and the content of `beetroot_template` in `/var/www/searx/searx/templates/beetroot`.
Enable the beetroot them by editing `/var/www/searx/searx/settings.yml` and changing:
```
default_theme : beetroot
theme_args :
beetroot_style : auto
```
Restart searx: `service uwsgi restart`
## NOTE:
The minify versions of the css files are missing at the moment. So, to test things as they are now, edit `/var/www/searx/searx/templates/beetroot/base.html` and replace `<link rel="stylesheet" href="{{ url_for('static', filename='css/'+preferences.get_value('beetroot-style')+'.min.css') }}" type="text/css" />` by `<link rel="stylesheet" href="{{ url_for('static', filename='css/'+preferences.get_value('beetroot-style')+'.css') }}" type="text/css" />`
2023-03-18 12:54:01 +01:00
## How to edit/change this theme
- You have clone the upstream first: `git clone https://github.com/searxng/searxng.git searx`.
- Copy the `static/themes/simple/src/less/definitions.less` from this repo to the clone.
- Edit the `static/themes/simple/src/less/definitions.less` file of the clone with the colors you want.
2023-03-19 09:11:06 +01:00
- Build the theme: in searx root-src folder, as the searx user, `make themes.simple`.
- Copy the css files obtained in the clone back to this repo: `cp -r static/themes/simple/css/* /static/themes/beetroot/css/`
2023-03-18 12:54:01 +01:00
2023-03-19 09:11:06 +01:00
If you want to test in live mode all your changes to the `Simple` theme, do `LIVE_THEME=simple make run` from searx-src folder and edit the `static/themes/simple/src/less/definitions.less` file as you wish.