summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorNoemi Vanyi <sitbackandwait@gmail.com>2016-04-21 13:15:04 +0200
committerNoemi Vanyi <sitbackandwait@gmail.com>2016-04-21 13:15:04 +0200
commit9c56154cfe121c6b89f48dd6b9af4e5e029d8a6e (patch)
tree7f79af29ca60b6ab49c486c12f15f570ca0ac0bc /docs
parent20b1f1ba8b5dbc416308e39f1e2025e17e19b55d (diff)
downloadsearxng-9c56154cfe121c6b89f48dd6b9af4e5e029d8a6e.tar.gz
searxng-9c56154cfe121c6b89f48dd6b9af4e5e029d8a6e.zip
add dev tips to quickstart
Diffstat (limited to 'docs')
-rw-r--r--docs/dev/contribution_guide.rst2
-rw-r--r--docs/dev/quickstart.rst18
2 files changed, 20 insertions, 0 deletions
diff --git a/docs/dev/contribution_guide.rst b/docs/dev/contribution_guide.rst
index 73f4ea332..65e587294 100644
--- a/docs/dev/contribution_guide.rst
+++ b/docs/dev/contribution_guide.rst
@@ -64,6 +64,8 @@ In order to submit a patch, please follow the steps below:
- Create a pull request.
+For more help on getting started with searx development, see :ref:`devquickstart`.
+
Translation
~~~~~~~~~~~
diff --git a/docs/dev/quickstart.rst b/docs/dev/quickstart.rst
index edca8af5e..92ef62385 100644
--- a/docs/dev/quickstart.rst
+++ b/docs/dev/quickstart.rst
@@ -1,3 +1,5 @@
+.. _devquickstart:
+
Development Quickstart
----------------------
@@ -88,3 +90,19 @@ After installing grunt, the files can be built using the following command:
.. code:: sh
./manage.sh build_grunt
+
+
+
+Tips for debugging/development
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+1. Turn on debug logging
+ Whether you are working on a new engine or trying to eliminate a bug, it is always a good idea
+ to turn on debug logging. When debug logging is enabled a stack trace appears,
+ instead of the cryptic ``Internal Server Error`` message. It can be turned on by setting
+ ``debug: False`` to ``debug: True`` in settings.yml.
+
+2. Run ``./manage.sh tests`` before creating a PR.
+ Failing build on Travis is common because of PEP8 checks. So a new commit must be created
+ containing these format fixes. This phase can be skipped if ``./manage.sh tests`` is run
+ locally before creating a PR.