Build Fail Sphinx Error contents.rst not found

后端 未结 2 1769
伪装坚强ぢ
伪装坚强ぢ 2021-02-03 18:07

I follow the instructions on read the docs but I get this error:

bash Sphinx error: master file /home/docs/checkouts/readthedocs.org/user_builds/mybinde

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-03 19:04

    I've needed to have my conf.py because of the extensions I'm using so simply add

    master_doc = 'contents'
    

    to your conf.py and than

    rename your index.rst to contents.rst.

    Than after build passes OK you still won't see anything on ReadTheDocs, except "This page still doesn't exists" just go to:

    https://your-project.readthedocs.io/en/latest/contents.html
    

    And you'll see your docs there.

提交回复
热议问题