mdbook/crates/mdbook-driver/src
Eric Huss 2afad43bdd Add error handling to env config handling
This adds several changes to how environment variables are handled to
more closely align with how configs are handled, and to fix an issue
with replacing entire tables. The changes are:

- Top-level tables like `MDBOOK_BOOK` now *replace* the contents of the
  `book` table instead of merging it. This adds consistency with how all
  the other environment objects work.
- Fixed allowing top-level replacement of `MDBOOK_BOOK` and
  `MDBOOK_OUTPUT`. This was inadvertently recently broken.
- Added ability to replace top-level `MDBOOK_RUST`. I don't recall why
  that wasn't included.
- Reject invalid keys like `MDBOOK_FOO`.
- Reject unknown keys, like `MDBOOK_BOOK='{"xyz": 123}'`
- Reject invalid types, like `MDBOOK_BOOK='{"title": 123}'`
2025-11-17 14:38:58 -08:00
..
builtin_preprocessors Remove partially outdated CmdPreprocessor/CmdRenderer docs 2025-09-28 15:22:49 -07:00
builtin_renderers Remove partially outdated CmdPreprocessor/CmdRenderer docs 2025-09-28 15:22:49 -07:00
mdbook Add tests for preprocessor/output default sort order 2025-08-18 11:59:15 -07:00
init.rs Move theme copy to the Theme type and reduce visibility 2025-09-20 17:55:12 -07:00
lib.rs Expose "search" feature from mdbook-driver 2025-10-28 11:29:48 -07:00
load.rs Clean up some fs-related utilities 2025-09-20 17:13:31 -07:00
mdbook.rs Add error handling to env config handling 2025-11-17 14:38:58 -08:00