Changed toctree maxdepth to 2 in api.rst