diff --git a/docs/index.rst b/docs/index.rst
index b7f9c62..88e6d8d 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -1,17 +1,25 @@
.. _swh-scanner:
Software Heritage - Code Scanner
================================
Source code scanner using the
`Software Heritage `_
`archive `_
as knowledge base.
.. toctree::
:maxdepth: 1
:caption: Contents:
cli
- /apidoc/swh.scanner
+
+.. only:: standalone_package_doc
+
+ Indices and tables
+ ------------------
+
+ * :ref:`genindex`
+ * :ref:`modindex`
+ * :ref:`search`