@@ -0,0 +1,136 @@
1+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5+<html xmlns="http://www.w3.org/1999/xhtml">
7+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9+ <title>Development Quickstart — searx 0.8.0 documentation</title>
11+ <link rel="stylesheet" href="../_static/style.css" type="text/css" />
12+ <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
14+ <script type="text/javascript">
15+ var DOCUMENTATION_OPTIONS = {
18+ COLLAPSE_INDEX: false,
19+ FILE_SUFFIX: '.html',
23+ <script type="text/javascript" src="../_static/jquery.js"></script>
24+ <script type="text/javascript" src="../_static/underscore.js"></script>
25+ <script type="text/javascript" src="../_static/doctools.js"></script>
26+ <link rel="top" title="searx 0.8.0 documentation" href="../index.html" />
29+ <link media="only screen and (max-device-width: 480px)" href="../_static/small_flask.css" type= "text/css" rel="stylesheet" />
30+ <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9">
33+ <body role="document">
35+ <div class="document">
36+ <div class="documentwrapper">
37+ <div class="bodywrapper">
38+ <div class="body" role="main">
40+ <div class="section" id="development-quickstart">
41+<h1>Development Quickstart<a class="headerlink" href="#development-quickstart" title="Permalink to this headline">¶</a></h1>
42+<p>This quickstart guide gets your environment set up with searx. Furthermore, it gives a
43+short introduction to the new manage.sh script.</p>
44+<div class="section" id="how-to-setup-your-development-environment">
45+<h2>How to setup your development environment<a class="headerlink" href="#how-to-setup-your-development-environment" title="Permalink to this headline">¶</a></h2>
46+<p>First, clone the source code of searx to the desired folder. In this case the source
47+is cloned to ~/myprojects/searx. Then create and activate the searx-ve
48+virtualenv and install the required packages using manage.sh.</p>
49+<div class="code sh highlight-python"><div class="highlight"><pre>cd ~/myprojects
50+git clone https://github.com/asciimoo/searx.git
53+. ./searx-ve/bin/activate
54+./manage.sh update_dev_packages
58+<div class="section" id="how-to-run-tests">
59+<h2>How to run tests<a class="headerlink" href="#how-to-run-tests" title="Permalink to this headline">¶</a></h2>
60+<p>Tests can be run using the manage.sh script.</p>
61+<p>Following tests and checks are available:</p>
64+<li>Selenium tests</li>
65+<li>PEP8 validation</li>
66+<li>Unit test coverage check</li>
68+<p>For example unit tests are run with the command below:</p>
69+<div class="code sh highlight-python"><div class="highlight"><pre>./manage.sh unit_tests
72+<p>For further test options, please consult the help of the manage.sh script.</p>
74+<div class="section" id="how-to-compile-styles-and-javascript">
75+<h2>How to compile styles and javascript<a class="headerlink" href="#how-to-compile-styles-and-javascript" title="Permalink to this headline">¶</a></h2>
76+<div class="section" id="how-to-build-styles">
77+<h3>How to build styles<a class="headerlink" href="#how-to-build-styles" title="Permalink to this headline">¶</a></h3>
78+<p>Less is required to build the styles of searx. Less can be installed using either NodeJS or Apt.</p>
79+<div class="code sh highlight-python"><div class="highlight"><pre>sudo apt-get install nodejs
80+sudo npm install -g less
84+<div class="code sh highlight-python"><div class="highlight"><pre>sudo apt-get install node-less
87+<p>After satisfying the requirements styles can be build using manage.sh</p>
88+<div class="code sh highlight-python"><div class="highlight"><pre>./manage.sh styles
92+<div class="section" id="how-to-build-the-source-of-the-oscar-theme">
93+<h3>How to build the source of the oscar theme<a class="headerlink" href="#how-to-build-the-source-of-the-oscar-theme" title="Permalink to this headline">¶</a></h3>
94+<p>Grunt must be installed in order to build the javascript sources. It depends on NodeJS, so first
95+Node has to be installed.</p>
96+<div class="code sh highlight-python"><div class="highlight"><pre>sudo apt-get install nodejs
97+sudo npm install -g grunt-cli
100+<p>After installing grunt, the files can be built using the following command:</p>
101+<div class="code sh highlight-python"><div class="highlight"><pre>./manage.sh build_grunt
112+ <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
113+ <div class="sphinxsidebarwrapper"><div class="sidebar_container body">
116+ <li><a href="../index.html">Home</a></li>
117+ <li><a href="https://github.com/asciimoo/searx">Source</a></li>
118+ <li><a href="https://github.com/asciimoo/searx/wiki">Wiki</a></li>
119+ <li><a href="https://github.com/asciimoo/searx/wiki/Searx-instances">Public instances</a></li>
123+ <li><a href="https://twitter.com/Searx_engine">Twitter</a></li>
124+ <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>
125+ <li><a href="https://gratipay.com/searx">Gratipay</a></li>
130+ <div class="clearer"></div>
132+ <div class="footer">
133+ © Copyright 2015, Adam Tauber.