cognitive-engineering-lab / rust-book

The Rust Programming Language: Experimental Edition
https://rust-book.cs.brown.edu
Other
503 stars 82 forks source link

The quiz segments are not appearing on a locally-built version of this book. #181

Open denizakcal opened 2 months ago

denizakcal commented 2 months ago

Hello.

The quiz segments are not appearing on a locally-built version of this book.

From what I remember, the output of the commands seemed fine, and the book can be accessed just fine from the built rust-book/book/index.html, other than for the quizzes (whose toml files seem to be in rust-book/quizzes) that is.

Could someone please help me get the quiz segments to show up in the locally-built version of this book?

Edit: Assuming you need more information, just let me know what you need to know, and I'll get the information for you.

denizakcal commented 2 months ago

I probably should have given something like this sooner (sorry), but I tried this in Debian (stable and testing) as well as Manjaro testing.

Here is my latest attempt in Debian testing (within a firejail container).: https://dpaste.com/5EATQ4EDF#wrap

This shows everything, except the quizzes, correctly.

willcrichton commented 6 days ago

The mdbook-quiz preprocessor seems to not be running. Specifically there should be a line during book build that says:

[INFO] (mdbook_quiz): Running the mdbook-quiz preprocessor

But that doesn't show up. I'm not sure why the preprocessor isn't being run. Can you confirm that [preprocessor.quiz] is contained in book.toml?