Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error jb build #1

Open
pbellec opened this issue Sep 21, 2021 · 3 comments
Open

error jb build #1

pbellec opened this issue Sep 21, 2021 · 3 comments

Comments

@pbellec
Copy link
Member

pbellec commented Sep 21, 2021

I tried to compile the book with a recent jupyter book and got the following error message:

The Table of Contents file is malformed: toc is not a mapping: <class 'list'>
You may need to migrate from the old format, using:

	jupyter-book toc migrate /home/pbellec/git/high_confidence_ad/content/_toc.yml -o /home/pbellec/git/high_confidence_ad/content/_toc.yml
@pbellec
Copy link
Member Author

pbellec commented Sep 21, 2021

after applying the suggested fix I still get a bunch of errors:

/home/pbellec/git/high_confidence_ad/content/00-simple_markdown.md:1: WARNING: Non-consecutive header level increase; 0 to 2 [myst.header]
/home/pbellec/git/high_confidence_ad/content/00-simple_markdown.md:8: WARNING: Non-consecutive header level increase; 0 to 2 [myst.header]
/home/pbellec/git/high_confidence_ad/content/00-simple_markdown.md:: WARNING: toctree contains reference to nonexisting document '02-simple_myst' [etoc.ref]
WARNING: Execution Failed with traceback saved in /home/pbellec/git/high_confidence_ad/content/_build/html/reports/01-simple_notebook.log
/home/pbellec/git/high_confidence_ad/content/01-simple_notebook.ipynb:10002: WARNING: Non-consecutive header level increase; 0 to 2 [myst.header]
/home/pbellec/git/high_confidence_ad/content/01-simple_notebook.ipynb:30002: WARNING: Non-consecutive header level increase; 0 to 2 [myst.header]
WARNING: Execution Failed with traceback saved in /home/pbellec/git/high_confidence_ad/content/_build/html/reports/02-simple-myst.log
/home/pbellec/git/high_confidence_ad/content/02-simple-myst.md:12: WARNING: Non-consecutive header level increase; 0 to 2 [myst.header]
/home/pbellec/git/high_confidence_ad/content/02-simple-myst.md:18: WARNING: Non-consecutive header level increase; 0 to 2 [myst.header]
/home/pbellec/git/high_confidence_ad/content/02-simple-myst.md:39: WARNING: Non-consecutive header level increase; 0 to 2 [myst.header]

@mathieuboudreau
Copy link
Member

My book was built with Jupyter Book 10.0 and my Dockerfile froze the book at that version.

Newer versions of Jupyter Book use a different Table of Contents format.

@mathieuboudreau
Copy link
Member

Ooops I just noticed this is not in the PR for my book. Still, the comment might apply; if the Jupyter Book version isn't frozen, the ever-continuing changes in their new versions might break the build (e.g. changes in the Table of Contents format)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants