Problem
Invalid theme causes an error and building the book fails, however an invalid default-theme does not. I would expect that an invalid default-theme would also fail to build.
Steps
- In
book.toml add
[output.html]
theme = "does-not-exist"
- Try to run
mdbook serve
- As expected it gives an error
$ mdbook serve
INFO Book building has started
INFO Running the html backend
ERROR Rendering failed
Caused by: theme dir /scratch/does-not-exist does not exist
- Now, in
book.toml change theme to default-theme
[output.html]
default-theme = "does-not-exist"
- Run
mdbook serve
- It succeeds but the css is broken with links looking the same as normal text and a weird header
$ mdbook serve
INFO Book building has started
INFO Running the html backend
INFO HTML book written to `/scratch/book`
INFO Serving on: http://localhost:3000
INFO Watching for changes...
Possible Solution(s)
Make default-theme fail to build the book like a normal theme does
Notes
No response
Version
Problem
Invalid
themecauses an error and building the book fails, however an invaliddefault-themedoes not. I would expect that an invaliddefault-themewould also fail to build.Steps
book.tomladdmdbook servebook.tomlchangethemetodefault-thememdbook servePossible Solution(s)
Make
default-themefail to build the book like a normalthemedoesNotes
No response
Version