contribution_guide.html 6.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>How to contribute &#8212; searx 0.12.0 documentation</title>
  7. <link rel="stylesheet" href="../_static/style.css" type="text/css" />
  8. <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
  9. <script type="text/javascript">
  10. var DOCUMENTATION_OPTIONS = {
  11. URL_ROOT: '../',
  12. VERSION: '0.12.0',
  13. COLLAPSE_INDEX: false,
  14. FILE_SUFFIX: '.html',
  15. HAS_SOURCE: true,
  16. SOURCELINK_SUFFIX: '.txt'
  17. };
  18. </script>
  19. <script type="text/javascript" src="../_static/jquery.js"></script>
  20. <script type="text/javascript" src="../_static/underscore.js"></script>
  21. <script type="text/javascript" src="../_static/doctools.js"></script>
  22. <link rel="index" title="Index" href="../genindex.html" />
  23. <link rel="search" title="Search" href="../search.html" />
  24. <link rel="next" title="Engine overview" href="engine_overview.html" />
  25. <link rel="prev" title="Development Quickstart" href="quickstart.html" />
  26. <link media="only screen and (max-device-width: 480px)" href="../_static/small_flask.css" type= "text/css" rel="stylesheet" />
  27. <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9">
  28. </head>
  29. <body>
  30. <div class="document">
  31. <div class="documentwrapper">
  32. <div class="bodywrapper">
  33. <div class="body" role="main">
  34. <div class="section" id="how-to-contribute">
  35. <h1>How to contribute<a class="headerlink" href="#how-to-contribute" title="Permalink to this headline">¶</a></h1>
  36. <div class="section" id="prime-directives-privacy-hackability">
  37. <h2>Prime directives: Privacy, Hackability<a class="headerlink" href="#prime-directives-privacy-hackability" title="Permalink to this headline">¶</a></h2>
  38. <p>Searx has two prime directives, privacy-by-design and hackability. The
  39. hackability comes in three levels:</p>
  40. <ul class="simple">
  41. <li>support of search engines</li>
  42. <li>plugins to alter search behaviour</li>
  43. <li>hacking searx itself</li>
  44. </ul>
  45. <p>Note the lack of “world domination” among the directives.
  46. Searx has no intention of wide mass-adoption, rounded
  47. corners, etc. The prime directive “privacy” deserves a separate
  48. chapter, as it’s quite uncommon unfortunately.</p>
  49. <div class="section" id="privacy-by-design">
  50. <h3>Privacy-by-design<a class="headerlink" href="#privacy-by-design" title="Permalink to this headline">¶</a></h3>
  51. <p>Searx was born out of the need for a privacy-respecting search tool
  52. which can be extended easily to maximize both its search and its
  53. privacy protecting capabilities.</p>
  54. <p>A few widely used features work differently or turned off by default or not implemented
  55. at all as a consequence of privacy-by-design.</p>
  56. <p>If a feature reduces the privacy preserving aspects of searx, it
  57. should be switched off by default or should not implemented at all.
  58. There are plenty of search engines already providing such features.
  59. If a feature reduces the protection of searx, users must be
  60. informed about the effect of choosing to enable it. Features
  61. that protect privacy but differ from the expectations of the
  62. user should also be explained.</p>
  63. <p>Also, if you think that something works weird with searx,
  64. it’s might be because of the tool you use is designed in a way to interfere with
  65. the privacy respect. Submitting a bugreport to the vendor of the tool that
  66. misbehaves might be a good feedback to reconsider the disrespect to
  67. its customers (e.g. GET vs POST requests in various browsers).</p>
  68. <p>Remember the other prime directive of searx is to be hackable, so if the
  69. above privacy concerns do not fancy you, simply fork it.</p>
  70. <p>Happy hacking.</p>
  71. </div>
  72. </div>
  73. <div class="section" id="code">
  74. <h2>Code<a class="headerlink" href="#code" title="Permalink to this headline">¶</a></h2>
  75. <p>In order to submit a patch, please follow the steps below:</p>
  76. <ul class="simple">
  77. <li>Follow coding conventions.<ul>
  78. <li>PEP8 standards apply, except the convention of line length</li>
  79. <li>Maximum line length is 120 characters</li>
  80. </ul>
  81. </li>
  82. <li>Check if your code breaks existing tests. If so, update the tests or fix your code.</li>
  83. <li>If your code can be unit-tested, add unit tests.</li>
  84. <li>Add yourself to the AUTHORS file.</li>
  85. <li>Create a pull request.</li>
  86. </ul>
  87. <p>For more help on getting started with searx development, see <a class="reference internal" href="quickstart.html#devquickstart"><span class="std std-ref">Development Quickstart</span></a>.</p>
  88. </div>
  89. <div class="section" id="translation">
  90. <h2>Translation<a class="headerlink" href="#translation" title="Permalink to this headline">¶</a></h2>
  91. <p>Translation currently takes place on
  92. <a class="reference external" href="https://transifex.com/projects/p/searx">transifex</a>.</p>
  93. <p><strong>Please, do not update translation files in the repo.</strong></p>
  94. </div>
  95. <div class="section" id="documentation">
  96. <h2>Documentation<a class="headerlink" href="#documentation" title="Permalink to this headline">¶</a></h2>
  97. <p>The documentation is built using Sphinx. So in order to be able to generate the required
  98. files, you have to install it on your system. (It can be installed easily using pip.)</p>
  99. <ol class="arabic simple">
  100. <li>Checkout the gh-pages branch.</li>
  101. <li>Edit the rst file you wish to update. Or create a new rst file and place it under the appropriate folder.</li>
  102. <li>Build the documentation using Sphinx.</li>
  103. <li>Add the updated and created files of these extension:<ul>
  104. <li>.rst</li>
  105. <li>.html</li>
  106. <li>.txt</li>
  107. </ul>
  108. </li>
  109. </ol>
  110. <ol class="arabic simple" start="6">
  111. <li>Create a pull request.</li>
  112. </ol>
  113. </div>
  114. </div>
  115. </div>
  116. </div>
  117. </div>
  118. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  119. <div class="sphinxsidebarwrapper"><div class="sidebar_container body">
  120. <h1>Searx</h1>
  121. <ul>
  122. <li><a href="../index.html">Home</a></li>
  123. <li><a href="https://github.com/asciimoo/searx">Source</a></li>
  124. <li><a href="../blog/blog.html">Blog</a></li>
  125. <li><a href="https://github.com/asciimoo/searx/wiki">Wiki</a></li>
  126. <li><a href="https://github.com/asciimoo/searx/wiki/Searx-instances">Public instances</a></li>
  127. </ul>
  128. <hr />
  129. <ul>
  130. <li><a href="https://twitter.com/Searx_engine">Twitter</a></li>
  131. </ul>
  132. </div>
  133. </div>
  134. </div>
  135. <div class="clearer"></div>
  136. </div>
  137. <div class="footer">
  138. &copy; Copyright 2015-2017, Adam Tauber.
  139. </div>
  140. </body>
  141. </html>