2019-12-12 18:20:56 +00:00
|
|
|
=================
|
2015-11-17 22:13:30 +00:00
|
|
|
How to contribute
|
2019-12-12 18:20:56 +00:00
|
|
|
=================
|
2015-11-17 22:13:30 +00:00
|
|
|
|
|
|
|
Prime directives: Privacy, Hackability
|
2019-12-12 18:20:56 +00:00
|
|
|
======================================
|
2015-11-17 22:13:30 +00:00
|
|
|
|
2019-12-12 18:20:56 +00:00
|
|
|
Searx has two prime directives, **privacy-by-design and hackability** . The
|
2015-12-10 20:40:22 +00:00
|
|
|
hackability comes in three levels:
|
2015-11-17 22:13:30 +00:00
|
|
|
|
2019-12-12 18:20:56 +00:00
|
|
|
- support of search engines
|
|
|
|
- plugins to alter search behaviour
|
|
|
|
- hacking searx itself
|
2015-11-17 22:13:30 +00:00
|
|
|
|
2019-12-12 18:20:56 +00:00
|
|
|
Note the lack of "world domination" among the directives. Searx has no
|
|
|
|
intention of wide mass-adoption, rounded corners, etc. The prime directive
|
|
|
|
"privacy" deserves a separate chapter, as it's quite uncommon unfortunately.
|
2015-11-17 22:13:30 +00:00
|
|
|
|
|
|
|
Privacy-by-design
|
2019-12-12 18:20:56 +00:00
|
|
|
-----------------
|
2015-11-17 22:13:30 +00:00
|
|
|
|
2019-12-12 18:20:56 +00:00
|
|
|
Searx was born out of the need for a **privacy-respecting** search tool which
|
|
|
|
can be extended easily to maximize both, its search and its privacy protecting
|
|
|
|
capabilities.
|
2015-12-10 20:40:22 +00:00
|
|
|
|
2019-12-12 18:20:56 +00:00
|
|
|
A few widely used features work differently or turned off by default or not
|
|
|
|
implemented at all **as a consequence of privacy-by-design**.
|
2015-12-10 20:40:22 +00:00
|
|
|
|
2019-12-12 18:20:56 +00:00
|
|
|
If a feature reduces the privacy preserving aspects of searx, it should be
|
|
|
|
switched off by default or should not implemented at all. There are plenty of
|
|
|
|
search engines already providing such features. If a feature reduces the
|
|
|
|
protection of searx, users must be informed about the effect of choosing to
|
|
|
|
enable it. Features that protect privacy but differ from the expectations of
|
|
|
|
the user should also be explained.
|
2015-12-10 20:40:22 +00:00
|
|
|
|
2019-12-12 18:20:56 +00:00
|
|
|
Also, if you think that something works weird with searx, it's might be because
|
|
|
|
of the tool you use is designed in a way to interfere with the privacy respect.
|
|
|
|
Submitting a bugreport to the vendor of the tool that misbehaves might be a good
|
|
|
|
feedback to reconsider the disrespect to its customers (e.g. ``GET`` vs ``POST``
|
|
|
|
requests in various browsers).
|
2015-11-17 22:13:30 +00:00
|
|
|
|
2019-12-12 18:20:56 +00:00
|
|
|
Remember the other prime directive of searx is to be hackable, so if the above
|
|
|
|
privacy concerns do not fancy you, simply fork it.
|
2015-11-17 22:13:30 +00:00
|
|
|
|
2019-12-12 18:20:56 +00:00
|
|
|
*Happy hacking.*
|
2015-12-10 20:40:22 +00:00
|
|
|
|
2015-11-17 22:13:30 +00:00
|
|
|
Code
|
2019-12-12 18:20:56 +00:00
|
|
|
====
|
|
|
|
|
|
|
|
.. _PEP8: https://www.python.org/dev/peps/pep-0008/
|
|
|
|
|
2015-11-17 22:13:30 +00:00
|
|
|
|
2015-12-10 20:40:22 +00:00
|
|
|
In order to submit a patch, please follow the steps below:
|
|
|
|
|
|
|
|
- Follow coding conventions.
|
|
|
|
|
2019-12-12 18:20:56 +00:00
|
|
|
- PEP8_ standards apply, except the convention of line length
|
2015-12-10 20:40:22 +00:00
|
|
|
- Maximum line length is 120 characters
|
|
|
|
|
2019-12-12 18:20:56 +00:00
|
|
|
- Check if your code breaks existing tests. If so, update the tests or fix your
|
|
|
|
code.
|
2015-12-10 20:40:22 +00:00
|
|
|
|
|
|
|
- If your code can be unit-tested, add unit tests.
|
2015-11-17 22:13:30 +00:00
|
|
|
|
2019-12-12 18:20:56 +00:00
|
|
|
- Add yourself to the :origin:`AUTHORS.rst` file.
|
2015-11-17 22:13:30 +00:00
|
|
|
|
2015-12-10 20:40:22 +00:00
|
|
|
- Create a pull request.
|
2015-11-17 22:13:30 +00:00
|
|
|
|
2016-04-21 11:15:04 +00:00
|
|
|
For more help on getting started with searx development, see :ref:`devquickstart`.
|
|
|
|
|
2015-11-17 22:13:30 +00:00
|
|
|
|
|
|
|
Translation
|
2019-12-12 18:20:56 +00:00
|
|
|
===========
|
2015-11-17 22:13:30 +00:00
|
|
|
|
2019-12-12 18:20:56 +00:00
|
|
|
Translation currently takes place on :ref:`transifex <translation>`.
|
2015-12-10 20:40:22 +00:00
|
|
|
|
2019-12-12 18:20:56 +00:00
|
|
|
.. caution::
|
2015-11-17 22:13:30 +00:00
|
|
|
|
2019-12-12 18:20:56 +00:00
|
|
|
Please, do not update translation files in the repo.
|
2015-11-17 22:13:30 +00:00
|
|
|
|
2015-12-10 20:40:22 +00:00
|
|
|
|
2019-12-12 18:20:56 +00:00
|
|
|
Documentation
|
|
|
|
=============
|
2015-12-10 20:40:22 +00:00
|
|
|
|
2019-12-12 18:20:56 +00:00
|
|
|
.. admonition:: ToDo
|
2015-12-10 20:40:22 +00:00
|
|
|
|
2019-12-12 18:20:56 +00:00
|
|
|
docs are no longer in gh-branch
|
2015-12-10 20:40:22 +00:00
|
|
|
|
2019-12-12 18:20:56 +00:00
|
|
|
Update this chapter and document the /docs workflow!!
|