diff --git a/docs/conf.py b/docs/conf.py
index 24183c4ba6165fdfcd5d4360f7aa473b090b8c58..d6ffa3fe3a4ef3979059b69c930fd11ee4766d03 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -15,7 +15,7 @@
 import os
 import sys
 sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__),
-                                                '../rpg')))
+                                                '../../rpg')))
 
 # -- Project information -----------------------------------------------------
 
diff --git a/docs/index.rst b/docs/index.rst
index e68318804d7fb6e4cf02dfffe2456fb551264991..e26f3f8d65895eaf1ddea5faf216dec0c67e7be4 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -8,20 +8,20 @@ RapidPeptidesGenerator (RPG)
 
 
 .. image:: https://badge.fury.io/py/rpg.svg
-:target: https://badge.fury.io/py/rpg
-:alt: Pypi repo
+    :target: https://badge.fury.io/py/rpg
+    :alt: Pypi repo
 
 .. image:: https://gitlab.pasteur.fr/nmaillet/rpg/badges/master/pipeline.svg
-:target: https://gitlab.pasteur.fr/nmaillet/rpg/commits/master
-:alt: Build Status
+    :target: https://gitlab.pasteur.fr/nmaillet/rpg/commits/master
+    :alt: Build Status
 
 .. image:: https://gitlab.pasteur.fr/nmaillet/rpg/badges/master/coverage.svg
-:target: https://gitlab.pasteur.fr/nmaillet/rpg/commits/master
-:alt: Coverage Report
+    :target: https://gitlab.pasteur.fr/nmaillet/rpg/commits/master
+    :alt: Coverage Report
 
 .. image:: https://readthedocs.org/projects/rapid-peptide-generator/badge/?version=latest
-:target: http://rapid-peptide-generator.readthedocs.io/en/latest/?badge=latest
-:alt: Documentation Status
+    :target: http://rapid-peptide-generator.readthedocs.io/en/latest/?badge=latest
+    :alt: Documentation Status
 
 In silico protein digestion
 
diff --git a/docs/modules.rst b/docs/modules.rst
index 7cc271cccd45b32b08a48b1079d4ddcd77e84ce8..00fd97bb467f3044532a4f9892ae45fd4c007bc2 100644
--- a/docs/modules.rst
+++ b/docs/modules.rst
@@ -1,5 +1,4 @@
-===
-API
+rpg
 ===
 
 .. toctree::
diff --git a/docs/rpg.rst b/docs/rpg.rst
index 7a38dc5d51439f47fdd8eb8e2057ba4f83346fd3..cab339a66d884b6ffea31ec44bacf84be06d2830 100644
--- a/docs/rpg.rst
+++ b/docs/rpg.rst
@@ -12,6 +12,14 @@ rpg.RapidPeptidesGenerator module
     :undoc-members:
     :show-inheritance:
 
+rpg.context module
+------------------
+
+.. automodule:: rpg.context
+    :members:
+    :undoc-members:
+    :show-inheritance:
+
 rpg.core module
 ---------------