diff --git a/docs/index.rst b/docs/index.rst
index bc7e90039461b51d3ea6111e24894fe48d7c90e3..4df601f201a8f6d8396de05ea79abece7e0d6a49 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -18,4 +18,12 @@ Reference Documentation
    :maxdepth: 2
 
    cli
-   /apidoc/swh.deposit
+
+.. only:: package_doc
+
+   Indices and tables
+   ------------------
+
+   * :ref:`genindex`
+   * :ref:`modindex`
+   * :ref:`search`