diff --git a/doc/source/conf.py b/doc/source/conf.py
index 950ffaa5c3edcebd0ecb62131e6b73c3b0ca323b..cfeba09c8d082544abe322dd890eba752c4cda26 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -37,7 +37,7 @@ for path, dirs, files in os.walk('.'):
 
 ### -- Auto-generate API documentation -----------------------------------------
 here = os.path.dirname(__file__)
-subprocess.check_output(f'sphinx-apidoc -e -f -o api {os.path.dirname(teqp.__file__)}', shell=True, cwd=here)
+subprocess.check_output(f'sphinx-apidoc -f -o api {os.path.dirname(teqp.__file__)}', shell=True, cwd=here)
 
 # -- General configuration ---------------------------------------------------
 
diff --git a/doc/source/index.rst b/doc/source/index.rst
index 110e259dee39d3007d98d2d4de94ac0092c5c5ff..c537fabc96e31273233d4b77b45e43a965384da3 100644
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -9,7 +9,7 @@ Welcome to teqp's documentation!
    models/index
    derivs/index
    algorithms/index
-   api
+   api/modules
 
 Indices and tables
 ==================