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?