| « Search | Retro Site View (Experimental) | Switch to Reader Mode | Images: 56K | Retro Mode: ON | Original Site » |
| GitHub (github.com · converted in 1616 ms) |
doc: make use of sphinx.ext.extlinks & sphinx.ext.intersphinx · searxng/searxng@af2cae6
Lines changed: 1 addition & 1 deletion
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -40,7 +40,7 @@ Example skeleton for the new engines:
| |||
40 | 40 | Development progress | |
41 | 41 | -------------------- | |
42 | 42 | ||
43 | -First, a proposal has been created as a Github issue. Then it was moved to the wiki as a design document. You can read it here: https://github.com/asciimoo/searx/wiki/Offline-engines | ||
43 | +First, a proposal has been created as a Github issue. Then it was moved to the wiki as a design document. You can read it here: :wiki:`Offline-engines`. | ||
44 | 44 | ||
45 | 45 | In this development step, searx core was prepared to accept and perform offline searches. Offline search requests are scheduled together with regular offline requests. | |
46 | 46 | ||
docs/conf.py| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,6 +4,9 @@
| |||
4 | 4 | from searx.version import VERSION_STRING | |
5 | 5 | from pallets_sphinx_themes import ProjectLink | |
6 | 6 | ||
7 | +GIT_URL = os.environ.get("GIT_URL", "https://github.com/asciimoo/searx") | ||
8 | +SEARX_URL = os.environ.get("SEARX_URL", "https://searx.me") | ||
9 | + | ||
7 | 10 | # Project -------------------------------------------------------------- | |
8 | 11 | ||
9 | 12 | project = u'searx' | |
@@ -16,7 +19,16 @@
| |||
16 | 19 | master_doc = "index" | |
17 | 20 | source_suffix = '.rst' | |
18 | 21 | ||
22 | +# usage:: lorem :patch:`f373169` ipsum | ||
23 | + | ||
24 | +extlinks = {} | ||
25 | +extlinks['origin'] = (GIT_URL + '/blob/master/%s', 'git://') | ||
26 | +extlinks['patch'] = (GIT_URL + '/commit/%s', '#') | ||
27 | +extlinks['search'] = (SEARX_URL + '/%s', '#') | ||
28 | +extlinks['wiki'] = ('https://github.com/asciimoo/searx/wiki/%s', ' ') | ||
29 | + | ||
19 | 30 | extensions = [ | |
31 | + 'sphinx.ext.extlinks', | ||
20 | 32 | 'sphinx.ext.viewcode', | |
21 | 33 | "sphinx.ext.autodoc", | |
22 | 34 | "sphinx.ext.intersphinx", | |
@@ -43,7 +55,7 @@
| |||
43 | 55 | html_theme_options = {"index_sidebar_logo": True} | |
44 | 56 | html_context = { | |
45 | 57 | "project_links": [ | |
46 | - ProjectLink("Source", os.environ.get("GIT_URL", "https://github.com/asciimoo")), | ||
58 | + ProjectLink("Source", GIT_URL), | ||
47 | 59 | ProjectLink("Wiki", "https://github.com/asciimoo/searx/wiki"), | |
48 | 60 | ProjectLink("Public instances", "https://github.com/asciimoo/searx/wiki/Searx-instances"), | |
49 | 61 | ProjectLink("Twitter", "https://twitter.com/Searx_engine"), | |
docs/dev/engine_overview.rst| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,8 +8,7 @@ so it uses different search engines to provide better results.
| |||
8 | 8 | Because there is no general search API which could be used for every | |
9 | 9 | search engine, an adapter has to be built between searx and the | |
10 | 10 | external search engines. Adapters are stored under the folder | |
11 | -`searx/engines | ||
12 | -<https://github.com/asciimoo/searx/tree/master/searx/engines>`__. | ||
11 | +:origin:`searx/engines`. | ||
13 | 12 | ||
14 | 13 | ||
15 | 14 | .. contents:: | |
@@ -199,7 +198,7 @@ default
| |||
199 | 198 | +--------------------+---------------------------------------------------------------------------------------------------------------+ | |
200 | 199 | | content | string, general result-text | | |
201 | 200 | +--------------------+---------------------------------------------------------------------------------------------------------------+ | |
202 | -| publishedDate | `datetime.datetime <https://docs.python.org/2/library/datetime.html#datetime-objects>`__, time of publish | | ||
201 | +| publishedDate | :py:class:`datetime.datetime`, time of publish | | ||
203 | 202 | +--------------------+---------------------------------------------------------------------------------------------------------------+ | |
204 | 203 | ||
205 | 204 | images | |
@@ -218,7 +217,7 @@ to use this template, the parameter
| |||
218 | 217 | +--------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | |
219 | 218 | | content | *(partly implemented)* | | |
220 | 219 | +--------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | |
221 | -| publishedDate | `datetime.datetime <https://docs.python.org/2/library/datetime.html#datetime-objects>`__, time of publish *(partly implemented)* | | ||
220 | +| publishedDate | :py:class:`datetime.datetime`, time of publish *(partly implemented)* | | ||
222 | 221 | +--------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | |
223 | 222 | | img\_src | string, url to the result image | | |
224 | 223 | +--------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | |
@@ -239,7 +238,7 @@ videos
| |||
239 | 238 | +--------------------+--------------------------------------------------------------------------------------------------------------+ | |
240 | 239 | | content | *(not implemented yet)* | | |
241 | 240 | +--------------------+--------------------------------------------------------------------------------------------------------------+ | |
242 | -| publishedDate | `datetime.datetime <https://docs.python.org/2/library/datetime.html#datetime-objects>`__, time of publish | | ||
241 | +| publishedDate | :py:class:`datetime.datetime`, time of publish | | ||
243 | 242 | +--------------------+--------------------------------------------------------------------------------------------------------------+ | |
244 | 243 | | thumbnail | string, url to a small-preview image | | |
245 | 244 | +--------------------+--------------------------------------------------------------------------------------------------------------+ | |
@@ -258,7 +257,7 @@ torrent
| |||
258 | 257 | +------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | |
259 | 258 | | content | string, general result-text | | |
260 | 259 | +------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | |
261 | -| publishedDate | `datetime.datetime <https://docs.python.org/2/library/datetime.html#datetime-objects>`__, time of publish *(not implemented yet)* | | ||
260 | +| publishedDate | :py:class:`datetime.datetime`, time of publish *(not implemented yet)* | | ||
262 | 261 | +------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | |
263 | 262 | | seed | int, number of seeder | | |
264 | 263 | +------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | |
@@ -286,7 +285,7 @@ map
| |||
286 | 285 | +-------------------------+--------------------------------------------------------------------------------------------------------------+ | |
287 | 286 | | content | string, general result-text | | |
288 | 287 | +-------------------------+--------------------------------------------------------------------------------------------------------------+ | |
289 | -| publishedDate | `datetime.datetime <https://docs.python.org/2/library/datetime.html#datetime-objects>`__, time of publish | | ||
288 | +| publishedDate | :py:class:`datetime.datetime`, time of publish | | ||
290 | 289 | +-------------------------+--------------------------------------------------------------------------------------------------------------+ | |
291 | 290 | | latitude | latitude of result (in decimal format) | | |
292 | 291 | +-------------------------+--------------------------------------------------------------------------------------------------------------+ | |
docs/index.rst| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,9 +5,8 @@ Search without being tracked.
| |||
5 | 5 | ||
6 | 6 | Searx is a free internet metasearch engine which aggregates results from more than 70 search services. Users are neither tracked nor profiled. Additionally, searx can be used over Tor for online anonymity. | |
7 | 7 | ||
8 | -Get started with searx by using one of the `public instances`_. If you don't trust anyone, you can set up your own, see :ref:`installation`. | ||
8 | +Get started with searx by using one of the :wiki:`Searx-instances`. If you don't trust anyone, you can set up your own, see :ref:`installation`. | ||
9 | 9 | ||
10 | -.. _public instances: https://github.com/asciimoo/searx/wiki/Searx-instances | ||
11 | 10 | ||
12 | 11 | Features | |
13 | 12 | -------- | |
docs/user/search_syntax.rst| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,30 +4,35 @@ Search syntax
| |||
4 | 4 | Searx allows you to modify the default categories, engines and search | |
5 | 5 | language via the search query. | |
6 | 6 | ||
7 | -Category/engine prefix: ``!`` | ||
7 | +Prefix ``!`` | ||
8 | + to set Category/engine | ||
8 | 9 | ||
9 | -Language prefix: ``:`` | ||
10 | +Prefix: ``:`` | ||
11 | + to set language | ||
10 | 12 | ||
11 | -Prefix to add engines and categories to the currently selected | ||
12 | -categories: ``?`` | ||
13 | +Prefix: ``?`` | ||
14 | + to add engines and categories to the currently selected categories | ||
13 | 15 | ||
14 | -Abbrevations of the engines and languages are also accepted. | ||
15 | -Engine/category modifiers are chainable and inclusive (e.g. with | ||
16 | -`!it !ddg !wp qwer <https://searx.me/?q=%21it%20%21ddg%20%21wp%20qwer>`_ | ||
17 | -search in IT category **and** duckduckgo **and** wikipedia for ``qwer``). | ||
16 | +Abbrevations of the engines and languages are also accepted. Engine/category | ||
17 | +modifiers are chainable and inclusive (e.g. with :search:`!it !ddg !wp qwer | ||
18 | +<?q=%21it%20%21ddg%20%21wp%20qwer>` search in IT category **and** duckduckgo | ||
19 | +**and** wikipedia for ``qwer``). | ||
18 | 20 | ||
19 | -See the `/preferences page <https://searx.me/preferences>`_ for the | ||
20 | -list of engines, categories and languages. | ||
21 | +See the :search:`/preferences page <preferences>` for the list of engines, | ||
22 | +categories and languages. | ||
21 | 23 | ||
22 | 24 | Examples | |
23 | 25 | ~~~~~~~~ | |
24 | 26 | ||
25 | 27 | Search in wikipedia for ``qwer``: | |
26 | -`!wp qwer <https://searx.me/?q=%21wp%20qwer>`__ or | ||
27 | -`!wikipedia qwer <https://searx.me/?q=%21wikipedia%20qwer>`_ | ||
28 | + | ||
29 | +- :search:`!wp qwer <?q=%21wp%20qwer>` or | ||
30 | +- :search:`!wikipedia qwer :search:<?q=%21wikipedia%20qwer>` | ||
28 | 31 | ||
29 | 32 | Image search: | |
30 | -`!images Cthulhu <https://searx.me/?q=%21images%20Cthulhu>`_ | ||
33 | + | ||
34 | +- :search:`!images Cthulhu <?q=%21images%20Cthulhu>` | ||
31 | 35 | ||
32 | 36 | Custom language in wikipedia: | |
33 | -`:hu !wp hackerspace <https://searx.me/?q=%3Ahu%20%21wp%20hackerspace>`_ | ||
37 | + | ||
38 | +- :search:`:hu !wp hackerspace <?q=%3Ahu%20%21wp%20hackerspace>` | ||