diff options
author | Markus Heiser <markus.heiser@darmarIT.de> | 2022-01-04 19:44:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-04 19:44:51 +0100 |
commit | 00d3a7477c01981a6ef2d396332670ad5b831fa6 (patch) | |
tree | d7002bbc90cdf52c8f65e8f709f6766a6d6d8ef6 /docs | |
parent | 8eb3167fba1f7aacbd4eb3da8615a3e58f249eb3 (diff) | |
parent | c7f274041445f12a50204d1920065b58d5a21613 (diff) | |
download | searxng-00d3a7477c01981a6ef2d396332670ad5b831fa6.tar.gz searxng-00d3a7477c01981a6ef2d396332670ad5b831fa6.zip |
Merge pull request #664 from return42/themes.live
[mod] manage: add themes.live command (rebuild on modification)
Diffstat (limited to 'docs')
-rw-r--r-- | docs/dev/makefile.rst | 19 | ||||
-rw-r--r-- | docs/dev/quickstart.rst | 5 |
2 files changed, 17 insertions, 7 deletions
diff --git a/docs/dev/makefile.rst b/docs/dev/makefile.rst index 66def0b3a..8c9058c34 100644 --- a/docs/dev/makefile.rst +++ b/docs/dev/makefile.rst @@ -13,7 +13,7 @@ Makefile To install system requirements follow :ref:`buildhosts`. -All relevant build tasks are implemented in :origin:`manage.sh` and for CI or +All relevant build tasks are implemented in :origin:`manage` and for CI or IDE integration a small ``Makefile`` wrapper is available. If you are not familiar with Makefiles, we recommend to read gnu-make_ introduction. @@ -173,14 +173,19 @@ Install latest Node.js_ LTS locally (uses nvm_):: To get up a running a developer instance simply call ``make run``. This enables *debug* option in :origin:`searx/settings.yml`, starts a ``./searx/webapp.py`` -instance, disables *debug* option again and opens the URL in your favorite WEB -browser (:man:`xdg-open`):: +instance and opens the URL in your favorite WEB browser (:man:`xdg-open`):: $ make run - PYENV OK - SEARXNG_DEBUG=1 ./manage.sh pyenv.cmd python ./searx/webapp.py - ... - INFO:werkzeug: * Running on http://127.0.0.1:8888/ (Press CTRL+C to quit) + +Changes to theme's HTML templates (jinja2) are instant. Changes to the CSS & JS +sources of the theme need to be rebuild. You can do that by running:: + + $ make themes.all + +Alternatively to ``themes.all`` you can run *live builds* of the theme you are +modify:: + + $ LIVE_THEME=simple make run .. _make clean: diff --git a/docs/dev/quickstart.rst b/docs/dev/quickstart.rst index d2b666c09..db52a2d80 100644 --- a/docs/dev/quickstart.rst +++ b/docs/dev/quickstart.rst @@ -40,10 +40,15 @@ JavaScript: Alternatively you can also compile selective the theme you have modified, e.g. the *simple* theme. + .. code:: sh make themes.simple +.. tip:: + + To get live builds while modifying CSS & JS use: ``LIVE_THEME=simple make run`` + If you finished your *tests* you can start to commit your changes. To separate the modified source code from the build products first run: |