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

前端 未结 8 1723
青春惊慌失措
青春惊慌失措 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:27

    You can use Pweave and noweb formatting to generate rst documents that include the output of the code embedded in them. Basically, you write your rst file, with python code embedded in marked chunks like this:

    <>=
    print("some text that will appear in the rst file")
    @
    

    and Pweave will execute those chunks, and replace them with their output in a resulting rst file, which you can then use with sphinx. See the Pweave reST example for more details of how it looks.

提交回复
热议问题