Struct mdbook::book::BookBuilder[][src]

pub struct BookBuilder { /* fields omitted */ }

A helper for setting up a new book and its directory structure.

Methods

impl BookBuilder
[src]

Create a new BookBuilder which will generate a book in the provided root directory.

Set the Config to be used.

Get the config used by the BookBuilder.

Should the theme be copied into the generated book (so users can tweak it)?

Should we create a .gitignore file?

Generate the actual book. This will:

  • Create the directory structure.
  • Stub out some dummy chapters and the SUMMARY.md.
  • Create a .gitignore (if applicable)
  • Create a themes directory and populate it (if applicable)
  • Generate a book.toml file,
  • Then load the book so we can build it or run tests.

Trait Implementations

impl Debug for BookBuilder
[src]

Formats the value using the given formatter. Read more

impl Clone for BookBuilder
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for BookBuilder
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for BookBuilder

impl Sync for BookBuilder