mdBook
mdBook copied to clipboard
broken link errors don't show where the broken links are
Running mdbook build
when there is a broken link outputs an error like:
2022-09-12 13:37:18 [ERROR] (mdbook::preprocess::links): Error updating "{{#include ../../../examples/qml_features/src/data_struct_properties.rs:book_macro_code}}", Could not read file for link {{#include ../../../examples/qml_features/src/data_struct_properties.rs:book_macro_code}} (/home/be/sw/cxx-qt/book/src/qobject/../../../examples/qml_features/src/data_struct_properties.rs)
2022-09-12 13:37:18 [WARN] (mdbook::preprocess::links): Caused By: No such file or directory (os error 2)
It would be helpful to output the file name and line number where the broken link is.