Skip to content

Conversation

@lquenti
Copy link

@lquenti lquenti commented Jan 3, 2026

Fixes #3000

I hope this is the correct place to fix, doing it directly in the serve execute function seemed weird as there its not trivial to me that it being a NotFound error implies that its about the SUMMARY.md.

@rustbot rustbot added the S-waiting-on-review Status: waiting on a review label Jan 3, 2026
@ehuss
Copy link
Contributor

ehuss commented Jan 12, 2026

Thanks! Can you please add a test for this? I think it would probably go in tests/testsuite/build.rs. The test would probably look something like basic_build, but would just need to call current_dir() to some subdirectory, and include expect_failure(). There's documentation at https://github.com/rust-lang/mdBook/blob/master/tests/testsuite/README.md on how to update the expected output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: waiting on a review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve error when writing mdbook serve from nested folder

3 participants