mdbook/tests
Eric Huss 5777a0edc4 Fix issue with None source_path
This fixes an issue where mdbook would panic if a non-draft chapter has
a None source_path when generating the search index. The code was
assuming that only draft chapters would have that behavior. However, API
users can inject synthetic chapters that have no path on disk.

This updates it to fall back to the path, or skip if neither is set.
2025-02-17 09:41:52 -08:00
..
cli fix init --title option failure when git user is not configured 2024-11-18 11:10:11 -08:00
dummy_book Update pulldown_cmark to 0.10 2024-02-05 14:11:27 -08:00
gui Add GUI regression test for #2529 2025-01-23 14:01:38 +01:00
summary_md_files Rewrote summary parser from a state machine to use recursive descent 2017-12-11 15:17:20 +11:00
alternative_backends.rs fix: formatting in src/ and tests/ directories 2024-09-21 15:56:13 -07:00
build_process.rs Transition to 2018 edition (#933) 2019-05-25 20:50:41 +02:00
cli_tests.rs Move cli tests to their own subdir 2021-09-26 11:29:36 -07:00
custom_preprocessors.rs Transition to 2018 edition (#933) 2019-05-25 20:50:41 +02:00
init.rs style: simplify string formatting for readability 2024-09-21 15:53:59 -07:00
parse_existing_summary_files.rs Update dependencies. (#1211) 2020-05-20 23:32:00 +02:00
rendered_output.rs Fix issue with None source_path 2025-02-17 09:41:52 -08:00
searchindex_fixture.json Update pulldown_cmark to 0.10 2024-02-05 14:11:27 -08:00
testing.rs add a --chapter option to mdbook test. (#1741) 2022-08-25 19:13:51 -07:00