| 
				
			 | 
			
			
				@@ -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"> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				3
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				4
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				5
			 | 
			
			
				+<html xmlns="http://www.w3.org/1999/xhtml"> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				6
			 | 
			
			
				+  <head> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				7
			 | 
			
			
				+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				8
			 | 
			
			
				+     
			 | 
		
	
		
			
			| 
				
			 | 
			
				9
			 | 
			
			
				+    <title>Development Quickstart — searx 0.8.0 documentation</title> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				10
			 | 
			
			
				+     
			 | 
		
	
		
			
			| 
				
			 | 
			
				11
			 | 
			
			
				+    <link rel="stylesheet" href="../_static/style.css" type="text/css" /> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				12
			 | 
			
			
				+    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				13
			 | 
			
			
				+     
			 | 
		
	
		
			
			| 
				
			 | 
			
				14
			 | 
			
			
				+    <script type="text/javascript"> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				15
			 | 
			
			
				+      var DOCUMENTATION_OPTIONS = { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				16
			 | 
			
			
				+        URL_ROOT:    '../', 
			 | 
		
	
		
			
			| 
				
			 | 
			
				17
			 | 
			
			
				+        VERSION:     '0.8.0', 
			 | 
		
	
		
			
			| 
				
			 | 
			
				18
			 | 
			
			
				+        COLLAPSE_INDEX: false, 
			 | 
		
	
		
			
			| 
				
			 | 
			
				19
			 | 
			
			
				+        FILE_SUFFIX: '.html', 
			 | 
		
	
		
			
			| 
				
			 | 
			
				20
			 | 
			
			
				+        HAS_SOURCE:  true 
			 | 
		
	
		
			
			| 
				
			 | 
			
				21
			 | 
			
			
				+      }; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				22
			 | 
			
			
				+    </script> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				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" /> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				27
			 | 
			
			
				+    
			 | 
		
	
		
			
			| 
				
			 | 
			
				28
			 | 
			
			
				+   
			 | 
		
	
		
			
			| 
				
			 | 
			
				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"> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				31
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				32
			 | 
			
			
				+  </head> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				33
			 | 
			
			
				+  <body role="document">   
			 | 
		
	
		
			
			| 
				
			 | 
			
				34
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				35
			 | 
			
			
				+    <div class="document"> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				36
			 | 
			
			
				+      <div class="documentwrapper"> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				37
			 | 
			
			
				+        <div class="bodywrapper"> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				38
			 | 
			
			
				+          <div class="body" role="main"> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				39
			 | 
			
			
				+             
			 | 
		
	
		
			
			| 
				
			 | 
			
				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 
			 | 
		
	
		
			
			| 
				
			 | 
			
				51
			 | 
			
			
				+cd searx 
			 | 
		
	
		
			
			| 
				
			 | 
			
				52
			 | 
			
			
				+virtualenv searx-ve 
			 | 
		
	
		
			
			| 
				
			 | 
			
				53
			 | 
			
			
				+. ./searx-ve/bin/activate 
			 | 
		
	
		
			
			| 
				
			 | 
			
				54
			 | 
			
			
				+./manage.sh update_dev_packages 
			 | 
		
	
		
			
			| 
				
			 | 
			
				55
			 | 
			
			
				+</pre></div> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				56
			 | 
			
			
				+</div> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				57
			 | 
			
			
				+</div> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				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> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				62
			 | 
			
			
				+<ul class="simple"> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				63
			 | 
			
			
				+<li>Unit tests</li> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				64
			 | 
			
			
				+<li>Selenium tests</li> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				65
			 | 
			
			
				+<li>PEP8 validation</li> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				66
			 | 
			
			
				+<li>Unit test coverage check</li> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				67
			 | 
			
			
				+</ul> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				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 
			 | 
		
	
		
			
			| 
				
			 | 
			
				70
			 | 
			
			
				+</pre></div> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				71
			 | 
			
			
				+</div> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				72
			 | 
			
			
				+<p>For further test options, please consult the help of the manage.sh script.</p> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				73
			 | 
			
			
				+</div> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				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 
			 | 
		
	
		
			
			| 
				
			 | 
			
				81
			 | 
			
			
				+</pre></div> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				82
			 | 
			
			
				+</div> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				83
			 | 
			
			
				+<p>OR</p> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				84
			 | 
			
			
				+<div class="code sh highlight-python"><div class="highlight"><pre>sudo apt-get install node-less 
			 | 
		
	
		
			
			| 
				
			 | 
			
				85
			 | 
			
			
				+</pre></div> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				86
			 | 
			
			
				+</div> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				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 
			 | 
		
	
		
			
			| 
				
			 | 
			
				89
			 | 
			
			
				+</pre></div> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				90
			 | 
			
			
				+</div> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				91
			 | 
			
			
				+</div> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				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 
			 | 
		
	
		
			
			| 
				
			 | 
			
				98
			 | 
			
			
				+</pre></div> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				99
			 | 
			
			
				+</div> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				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 
			 | 
		
	
		
			
			| 
				
			 | 
			
				102
			 | 
			
			
				+</pre></div> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				103
			 | 
			
			
				+</div> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				104
			 | 
			
			
				+</div> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				105
			 | 
			
			
				+</div> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				106
			 | 
			
			
				+</div> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				107
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				108
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				109
			 | 
			
			
				+          </div> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				110
			 | 
			
			
				+        </div> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				111
			 | 
			
			
				+      </div> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				112
			 | 
			
			
				+      <div class="sphinxsidebar" role="navigation" aria-label="main navigation"> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				113
			 | 
			
			
				+        <div class="sphinxsidebarwrapper"><div class="sidebar_container body"> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				114
			 | 
			
			
				+<h1>Searx</h1> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				115
			 | 
			
			
				+<ul> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				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> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				120
			 | 
			
			
				+</ul> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				121
			 | 
			
			
				+<hr /> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				122
			 | 
			
			
				+<ul> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				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> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				126
			 | 
			
			
				+</ul> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				127
			 | 
			
			
				+</div> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				128
			 | 
			
			
				+        </div> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				129
			 | 
			
			
				+      </div> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				130
			 | 
			
			
				+      <div class="clearer"></div> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				131
			 | 
			
			
				+    </div> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				132
			 | 
			
			
				+    <div class="footer"> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				133
			 | 
			
			
				+      © Copyright 2015, Adam Tauber. 
			 | 
		
	
		
			
			| 
				
			 | 
			
				134
			 | 
			
			
				+    </div> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				135
			 | 
			
			
				+  </body> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				136
			 | 
			
			
				+</html> 
			 |