When working in PyCharm, the preview mode of the document I am creating in Sphinx shows:
System Message: ERROR/3 (<stdin>, line 9) Unknown directive type "toctree". ..toctree:: :maxdepth: 2 file1 file2
I have included the autodoc extension in my conf.py file. When I open the /build/index.html file, it works fine however. My question thus is: How can I remove this error from the PyCharm preview mode, so that I can preview my document without having to open the /build/index.html file all the time?