contribution_guide.html 6.7KB

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