sphinx-build fail - autodoc can't import/find module

前端 未结 8 1722
青春惊慌失措
青春惊慌失措 2020-12-04 15:17

I\'m trying to get started with Sphinx and seem to have relentless problems.

Command: docs/sphinx-quickstart

I answer all the questions and ever

8条回答
  •  半阙折子戏
    2020-12-04 15:42

    I think I did this the first time I tried to add a file to the toctree. I think it was because I left out the blank line between the :maxdepth line and the file name.

    .. Animatrix Concepts documentation master file, created by
       sphinx-quickstart on Thu Mar 22 18:06:15 2012.
       You can adapt this file completely to your liking, but it should at least
       contain the root `toctree` directive.
    
    Welcome to Animatrix Concepts documentation!
    ============================================
    
    Contents:
    
    .. toctree::
       :maxdepth: 2
    
       stuff
    
    
    Indices and tables
    ==================
    
    * :ref:`genindex`
    * :ref:`modindex`
    * :ref:`search`
    

    Above is my index.rst file. stuff.rst resides in the same directory as it.

提交回复
热议问题