Skip to content

mdbook init should create a stub book.toml based on args #331

Open
@budziq

Description

@budziq

This is connected with discussion in https://github.com/azerupi/mdBook/issues/313

I currently find 3 problems in this area:

  • I guess that book init should create book.toml filled with defaults (possibly from gitconfiig) and updated with info from flags such as --theme
  • Currently options such as mdbook init --theme do nothing if book.toml is not present.
    Namely the book init tries to read the book.toml and does not find it, then copy_theme starts and has nothing to do as the themedir is not set. This will be confusing to the user.
  • --theme option always triggers confirmation prompt (unless --force)? There seams to be no reason to prompt if the target theme directory does not exists yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-CLIArea: CLIC-papercutCategory: A small usability bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions