mdbook/crates/mdbook-driver/src/builtin_preprocessors
Eric Huss 797112ef36 Clean up some fs-related utilities
This does a little cleanup around the usage of filesystem functions:

- Add `mdbook_core::utils::fs::read_to_string` as a wrapper around
  `std::fs::read_to_string` to provide better error messages. Use
  this wherever a file is read.
- Add `mdbook_core::utils::fs::create_dir_all` as a wrapper around
  `std::fs::create_dir_all` to provide better error messages. Use
  this wherever a file is read.
- Replace `mdbook_core::utils::fs::write_file` with `write` to mirror
  the `std::fs::write` API.
- Remove `mdbook_core::utils::fs::create_file`. It was generally not
  used anymore.
- Scrub the usage of `std::fs` to use the new wrappers. This doesn't
  remove it 100%, but it is now significantly reduced.
2025-09-20 17:13:31 -07:00
..
links Move take_lines functions to mdbook-driver and make private 2025-09-19 18:01:33 -07:00
cmd.rs Switch from log to tracing 2025-09-12 06:13:45 -07:00
index.rs Add a helper for defining a regex 2025-09-12 06:48:50 -07:00
links.rs Clean up some fs-related utilities 2025-09-20 17:13:31 -07:00
mod.rs Finish moving built-in preprocessors to mdbook-driver 2025-07-23 17:40:57 -07:00