Skip to content

feat(mdbook): allow default configuration - #4207

Open
tomatotomata wants to merge 2 commits into
bazelbuild:mainfrom
tomatotomata:codex/mdbook-default-config
Open

feat(mdbook): allow default configuration#4207
tomatotomata wants to merge 2 commits into
bazelbuild:mainfrom
tomatotomata:codex/mdbook-default-config

Conversation

@tomatotomata

Copy link
Copy Markdown

Summary

  • make the book attribute optional for the mdbook rule
  • generate an empty book.toml so mdBook uses its documented default configuration
  • add a build test covering a book with only src/SUMMARY.md and chapter sources

This addresses #4194. The issue discussion asked for a PR that demonstrates mdBook can run without a user-provided book.toml; an empty configuration parses to mdBook's defaults, including src as the source directory. I kept the generated file in the package staging tree so the existing input mapping and mdbook_server provider continue to use the same config path. Let me know what you think.

Validation

  • git diff --check passed
  • inspected mdBook 0.4.44 configuration defaults: an empty TOML file loads src as the source directory
  • Bazel execution was not available in this Windows environment, so the new build target is left for the repository CI matrix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant