mdBook/src
Michael Bryan 1b5a58902f Created a Loader for loading a book using the Summary
This is a squashed commit. It roughly encompasses the following changes.

---

\# Book

- Created another private submodule, mdbook::loader::book

- This submodule contains the data types representing a Book

- For now the Book just contains a list of BookItems (either chapters or
separators)

- A Chapter contains its name, contents (as one long string), an
optional section number (only numbered chapters have numbers,
obviously), and any nested chapters

- There's a function for loading a single Chapter from disk using it's
associated Link entry from the SUMMARY.md

- Another function builds up the Book by recursively visiting all Links
and separators in the Summary and joining them into a single
Vec<SummaryItem>. This is the only non-dumb-data-type item which is
actually exported from the book module

\# Loader

- Made the loader use the book::load_book_from_disk function for
loading a book in the loader's directory.

\# Tests

- Made sure you can load from disk by writing some files to a temporary
directory

- Made sure the Loader can load the entire example-book from disk and
doesn't crash or hit an error

- Increased test coverage from 34.4% to 47.7% (as reported by cargo
kcov)
2017-09-30 15:52:46 +08:00
..
bin Merge pull request #418 from behnam/manifest 2017-09-07 22:46:49 +02:00
book [book] Prevent over-matching in gitignore rule 2017-08-30 16:01:45 -07:00
config Integrating Ace #247 2017-08-03 22:45:33 -04:00
loader Created a Loader for loading a book using the Summary 2017-09-30 15:52:46 +08:00
parse Changes made with rustfmt including `use_try_shorthand` 2017-05-19 13:04:37 +02:00
preprocess added clone derives and made the separating space mandatory in links with paths 2017-08-01 13:50:12 +02:00
renderer Merge pull request #440 from budziq/force_runnable 2017-09-14 12:48:29 -04:00
theme Merge pull request #450 from Zengor/master 2017-09-23 21:35:41 +02:00
utils fixed missing playpen css class when codeblock properties had whitespace 2017-08-11 12:39:27 +02:00
lib.rs Created a Loader for loading a book using the Summary 2017-09-30 15:52:46 +08:00