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
2025-09-16 20:26:35 -07:00
2025-09-20 17:13:31 -07:00
2025-09-15 07:11:19 -07:00
2025-08-27 14:44:12 -07:00
2025-09-20 17:13:31 -07:00
2025-04-05 20:41:36 -04:00
2025-09-16 20:26:35 -07:00
2025-09-16 20:26:35 -07:00
2025-07-14 15:45:55 -07:00
2025-08-25 15:15:47 -07:00
2015-07-29 01:11:30 +02:00
2025-07-23 17:29:55 -07:00
2025-03-23 13:04:10 -07:00

mdBook

CI Status crates.io LICENSE

mdBook is a utility to create modern online books from Markdown files.

Check out the User Guide for a list of features and installation and usage information. The User Guide also serves as a demonstration to showcase what a book looks like.

If you are interested in contributing to the development of mdBook, check out the Contribution Guide.

License

All the code in this repository is released under the Mozilla Public License v2.0, for more information take a look at the LICENSE file.

Description
Create book from markdown files. Like Gitbook but implemented in Rust
Readme MPL-2.0 20 MiB
Languages
Rust 75.7%
JavaScript 7.6%
CSS 6.5%
Handlebars 5.5%
HTML 4%
Other 0.7%