contribution_guide.rst 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. How to contribute
  2. -----------------
  3. Prime directives: Privacy, Hackability
  4. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  5. Searx has two prime directives, privacy-by-design and hackability. The
  6. hackability comes in three levels:
  7. - support of search engines
  8. - plugins to alter search behaviour
  9. - hacking searx itself
  10. Note the lack of "world domination" among the directives.
  11. Searx has no intention of wide mass-adoption, rounded
  12. corners, etc. The prime directive "privacy" deserves a separate
  13. chapter, as it's quite uncommon unfortunately.
  14. Privacy-by-design
  15. ^^^^^^^^^^^^^^^^^
  16. Searx was born out of the need for a privacy-respecting search tool
  17. which can be extended easily to maximize both its search and its
  18. privacy protecting capabilities.
  19. A few widely used features work differently or turned off by default or not implemented
  20. at all as a consequence of privacy-by-design.
  21. If a feature reduces the privacy preserving aspects of searx, it
  22. should be switched off by default or should not implemented at all.
  23. There are plenty of search engines already providing such features.
  24. If a feature reduces the protection of searx, users must be
  25. informed about the effect of choosing to enable it. Features
  26. that protect privacy but differ from the expectations of the
  27. user should also be explained.
  28. Also, if you think that something works weird with searx,
  29. it's might be because of the tool you use is designed in a way to interfere with
  30. the privacy respect. Submitting a bugreport to the vendor of the tool that
  31. misbehaves might be a good feedback to reconsider the disrespect to
  32. its customers (e.g. GET vs POST requests in various browsers).
  33. Remember the other prime directive of searx is to be hackable, so if the
  34. above privacy concerns do not fancy you, simply fork it.
  35. Happy hacking.
  36. Code
  37. ~~~~
  38. In order to submit a patch, please follow the steps below:
  39. - Follow coding conventions.
  40. - PEP8 standards apply, except the convention of line length
  41. - Maximum line length is 120 characters
  42. - Check if your code breaks existing tests. If so, update the tests or fix your code.
  43. - If your code can be unit-tested, add unit tests.
  44. - Add yourself to the AUTHORS file.
  45. - Create a pull request.
  46. Translation
  47. ~~~~~~~~~~~
  48. Translation currently takes place on
  49. `transifex <https://transifex.com/projects/p/searx>`__.
  50. **Please, do not update translation files in the repo.**
  51. Documentation
  52. ~~~~~~~~~~~~~
  53. The documentation is built using Sphinx. So in order to be able to generate the required
  54. files, you have to install it on your system. (It can be installed easily using pip.)
  55. 1. Checkout the gh-pages branch.
  56. 2. Edit the rst file you wish to update. Or create a new rst file and place it under the appropriate folder.
  57. 3. Build the documentation using Sphinx.
  58. 4. Add the updated and created files of these extension:
  59. - .rst
  60. - .html
  61. - .txt
  62. 6. Create a pull request.