diff --git a/docs/index.rst b/docs/index.rst
index 4f6a4b37c825f21eb77698b4a3d05c66fe7f601f..846bbdb333245d5a6bb8fda6ba66b330bb73c7cf 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -29,4 +29,12 @@ Reference Documentation
    :maxdepth: 2
 
    cli
-   /apidoc/swh.lister
+
+.. only:: standalone_package_doc
+
+   Indices and tables
+   ------------------
+
+   * :ref:`genindex`
+   * :ref:`modindex`
+   * :ref:`search`