WARNING: document isn't included in any toctree for included file

后端 未结 4 1208
故里飘歌
故里飘歌 2020-12-25 09:29

I\'m getting the warning:

WARNING: document isn\'t included in any toctree

for files that exist in the document because they\'ve been expli

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-25 10:20

    Sphinx will complain about this whether the file is included or not.

    However, you can specifically exclude files by using the exclude_patterns config value.

    So for your case you might try to change Sphinx's conf.py file with something like:

    exclude_patterns = ['pages/reference-architecture', 'some/other/file.txt']
    

    You can exclude individual files, directories, or use file globbing patterns to match groups of files this way.

    EDIT: See: Joakim's answer for another option that was added after this answer was created.

提交回复
热议问题