jupyter-book icon indicating copy to clipboard operation
jupyter-book copied to clipboard

WARNING: toctree contains reference to nonexisting document for all new files

Open BPrasad123 opened this issue 3 years ago • 5 comments

Describe the bug

context First time build and publishing was successful. However, for all new files next added I am getting "WARNING: toctree contains reference to nonexisting document" message and the corresponding html files are not being generated.

expectation html files should have been created for newly added files as well.

bug Got the following error while building the book again: C:\Users\bhaga\Documents\Management\Product_Management\github-content\product-management-book\welcome.md:: WARNING: toctree contains reference to nonexisting document 'docs/learning-sources/learning-sources-intro' [etoc.ref] looking for now-outdated files... none found pickling environment... done checking consistency... C:\Users\bhaga\Documents\Management\Product_Management\github-content\product-management-book\docs\lerning-sources\articles.md: WARNING: document isn't included in any toctree C:\Users\bhaga\Documents\Management\Product_Management\github-content\product-management-book\docs\lerning-sources\learning-sources-intro.md: WARNING: document isn't included in any toctree C:\Users\bhaga\Documents\Management\Product_Management\github-content\product-management-book\docs\lerning-sources\sources.md: WARNING: document isn't included in any toctree

Will appreciate any help on this.

Reproduce the bug

Github repo: https://github.com/BPrasad123/product-management-book

List your environment

Jupyter Book : 0.13.0 External ToC : 0.2.4 MyST-Parser : 0.15.2 MyST-NB : 0.13.2 Sphinx Book Theme : 0.3.2 Jupyter-Cache : 0.4.3 NbClient : 0.5.13

BPrasad123 avatar Jul 31 '22 17:07 BPrasad123

Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada:

welcome[bot] avatar Jul 31 '22 17:07 welcome[bot]

What commands do you use to generate the book? it can really help reprodcuing your error.

epogrebnyak avatar Aug 13 '22 06:08 epogrebnyak

You have got a mistake in folder names:

    - file: docs/learning-sources/learning-sources-intro

while your folder is named /lerning-sources - try fix that and see if error persists.

epogrebnyak avatar Aug 13 '22 08:08 epogrebnyak

Can probably close here as not a jupyter-book issue.

epogrebnyak avatar Aug 13 '22 08:08 epogrebnyak

It was my bad, a typo. Sorry with many versions couldn't catch. You may close the request. Thanks for your support.

BPrasad123 avatar Aug 13 '22 11:08 BPrasad123