searxng/docs/dev
Martin Fischer 3f77ff29a3 [fix] plugin JS/CSS dependencies depend on themes
SearXNG supports plugins. Plugins can declare JavaScript and CSS
dependencies. Currently three plugins declare such dependencies:

* search_on_category_select (on by default)
* vim_hotkeys
* infinite_scroll

If a user enables a plugin its JavaScript and CSS dependencies are
embedded into every page. Sounds simple right?

Ironically in the Simple theme things start to get complicated:
The scripts were originally written for the Oscar theme and thus depend
on jQuery (which isn't loaded in the Simple theme) and look for certain
element identifiers (which aren't present in the Simple theme).  So how
did the plugins actually work with the simple theme?

The simple theme just didn't embed the plugin dependencies (which wasn't
even documented anywhere). Instead the simple theme checked if the paths
contained a certain script path, then set an attribute, which 00_init.js
detected and turned into a boolean, which was then used to enable
vanilla-JS reimplementations of the plugins.

This commit ends this horrible hack (and fixes #769).  The necessary
changes to the Simple theme are introduced in the next commit.
2022-01-18 19:03:15 +01:00
..
searxng_extra [docs] add documentation for the scripts in searxng_extra/update 2022-01-05 16:09:40 +01:00
contribution_guide.rst [brand] docs - normalize project name to SearXNG 2021-09-13 14:36:24 +02:00
csv_table.txt docs: reST-primer describe table markup (WIP) 2019-12-20 20:39:14 +01:00
engine_overview.rst [brand] docs - normalize project name to SearXNG 2021-09-13 14:36:24 +02:00
hello.dot doc: add content to reST primer (WIP) // linuxdoc 2019-12-19 23:36:53 +01:00
index.rst [docs] move searxng_extra/ stuff to the developer section. 2022-01-03 10:20:54 +01:00
lxcdev.rst [brand] SearXNG - docs rename links and fix documentation 2021-11-18 18:27:26 +01:00
makefile.rst [fix] typo 'test.sh' in the docs/dev/makefile.rst to 'test.shell' 2022-01-18 12:30:32 +01:00
offline_engines.rst [brand] docs - normalize project name to SearXNG 2021-09-13 14:36:24 +02:00
plugins.rst [fix] plugin JS/CSS dependencies depend on themes 2022-01-18 19:03:15 +01:00
quickstart.rst [mod] live build of a theme: LIVE_THEME=simple make run 2021-12-29 21:53:12 +01:00
reST.rst reference docs.searxng.org 2022-01-02 21:18:29 +01:00
search_api.rst [brand] SearXNG - docs rename links and fix documentation 2021-11-18 18:27:26 +01:00
svg_image.svg doc: add content to reST primer (WIP) // linuxdoc 2019-12-19 23:36:53 +01:00
translation.rst [translations] ./manage rename shell functions to integrate weblate 2021-08-16 12:06:12 +02:00
translation.svg [fix] translation: lock weblate only when there is an actual change of messages.pot 2021-09-06 17:16:51 +02:00