<h2>Prime directives: Privacy, Hackability<aclass="headerlink"href="#prime-directives-privacy-hackability"title="Permalink to this headline">¶</a></h2>
<p>Searx was born out of the need for a <strong>privacy-respecting</strong> search tool which
can be extended easily to maximize both, its search and its privacy protecting
capabilities.</p>
<p>A few widely used features work differently or turned off by default or not
implemented at all <strong>as a consequence of privacy-by-design</strong>.</p>
<p>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.</p>
<p>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. <codeclass="docutils literal notranslate"><spanclass="pre">GET</span></code> vs <codeclass="docutils literal notranslate"><spanclass="pre">POST</span></code>
requests in various browsers).</p>
<p>Remember the other prime directive of searx is to be hackable, so if the above
privacy concerns do not fancy you, simply fork it.</p>
<li><p><aclass="reference external"href="https://wiki.openstack.org/wiki/GitCommitMessages#Structural_split_of_changes">Structural split of changes</a></p></li>
<li><p><aclass="reference external"href="https://www.python.org/dev/peps/pep-0008/">PEP8</a> standards apply, except the convention of line length</p></li>
<li><p>Maximum line length is 120 characters</p></li>
<li><p>The cardinal rule for creating good commits is to ensure there is only one
<em>logical change</em> per commit / read <aclass="reference external"href="https://wiki.openstack.org/wiki/GitCommitMessages#Structural_split_of_changes">Structural split of changes</a></p></li>
<li><p>Check if your code breaks existing tests. If so, update the tests or fix your
code.</p></li>
<li><p>If your code can be unit-tested, add unit tests.</p></li>
<li><p>Add yourself to the <aclass="reference external"href="https://github.com/asciimoo/searx/blob/master/AUTHORS.rst">git://AUTHORS.rst</a> file.</p></li>
<li><p>Choose meaning full commit messages, read <aclass="reference external"href="https://www.conventionalcommits.org/">Conventional Commits</a></p>
<p>For more help on getting started with searx development, see <aclass="reference internal"href="quickstart.html#devquickstart"><spanclass="std std-ref">Development Quickstart</span></a>.</p>
<p>Translation currently takes place on <aclass="reference internal"href="translation.html#translation"><spanclass="std std-ref">transifex</span></a>.</p>
<divclass="admonition caution">
<pclass="admonition-title">Caution</p>
<p>Please, do not update translation files in the repo.</p>
<spanid="contrib-docs"></span><h2>Documentation<aclass="headerlink"href="#documentation"title="Permalink to this headline">¶</a></h2>
<divclass="sidebar">
<pclass="sidebar-title">The reST sources</p>
<p>has been moved from <codeclass="docutils literal notranslate"><spanclass="pre">gh-branch</span></code> into <codeclass="docutils literal notranslate"><spanclass="pre">master</span></code> (<aclass="reference external"href="https://github.com/asciimoo/searx/blob/master/docs">git://docs</a>).</p>
</div>
<p>The documentation is built using <aclass="reference external"href="http://www.sphinx-doc.org">Sphinx</a>. So in order to be able to generate
the required files, you have to install it on your system. Much easier, use
<p>Live build is like WYSIWYG. If you want to edit the documentation, its
recommended to use. The Makefile target <codeclass="docutils literal notranslate"><spanclass="pre">docs-live</span></code> builds the docs, opens
URL in your favorite browser and rebuilds every time a reST file has been
changed.</p>
<divclass="highlight-sh notranslate"><divclass="highlight"><pre><span></span>$ make docs-live
...
The HTML pages are in dist/docs.
... Serving on http://0.0.0.0:8080
... Start watching changes
</pre></div>
</div>
</div>
<divclass="section"id="deploy-on-github-io">
<spanid="id2"></span><h3>deploy on github.io<aclass="headerlink"href="#deploy-on-github-io"title="Permalink to this headline">¶</a></h3>
<p>To deploy documentation at <aclass="reference external"href="https://asciimoo.github.io/searx/.">github.io</a> use Makefile target
<aclass="reference internal"href="makefile.html#make-gh-pages"><spanclass="std std-ref">make gh-pages</span></a>, which will builds the documentation, clones searx into a sub
folder <codeclass="docutils literal notranslate"><spanclass="pre">gh-pages</span></code>, cleans it, copies the doc build into and runs all the
needed git add, commit and push:</p>
<divclass="highlight-sh notranslate"><divclass="highlight"><pre><span></span>$ make docs-clean gh-pages
...
SPHINX docs --> file://<...>/dist/docs
The HTML pages are in dist/docs.
...
Cloning into <spanclass="s1">'gh-pages'</span> ...