Sphinx Error Unknow directive type "automodule" or "autoclass"

Posted by user1130381 on Stack Overflow See other posts from Stack Overflow or by user1130381
Published on 2012-11-22T16:02:53Z Indexed on 2012/11/22 16:59 UTC
Read the original article Hit count: 2430

Filed under:
|

I need document my python project using Sphinx. But I can't use autodoc.

When I config my project I select the option "extension autodoc", but now if I use .. autoclass:: Class, I have a ERROR:

ERROR: Unknown directive type "autoclass"

I configure the PYTHONPATH, and now it's good. But I already have this problem.

My index file is:

.. ATOM documentation master file, created by sphinx-quickstart on Thu Nov 22 15:24:42 2012. You can adapt this file completely to your liking, but it should at least contain the root toctree directive.

Welcome to ATOM's documentation!

Contents:

.. toctree:: :maxdepth: 2

.. automodule:: atom

Indices and tables

  • :ref:genindex
  • :ref:modindex
  • :ref:search

Thank you, I need that someone say me how I find the problem, or how i can fix this!

Sorry for my English, I start now to learn English.

© Stack Overflow or respective owner

Related posts about python-sphinx

Related posts about autodoc