mdBook/tests
Michael Bryan bce3297bbb 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-08-03 00:30:45 +08:00
..
dummy-book Got some feedback from azerupi and added a DummyBook builder 2017-08-02 22:29:28 +08:00
config.rs HtmlConfig is no longer optional 2017-06-27 14:01:33 +02:00
helpers.rs Got some feedback from azerupi and added a DummyBook builder 2017-08-02 22:29:28 +08:00
init.rs Got some feedback from azerupi and added a DummyBook builder 2017-08-02 22:29:28 +08:00
jsonconfig.rs HtmlConfig is no longer optional 2017-06-27 14:01:33 +02:00
loading.rs Created a Loader for loading a book using the Summary 2017-08-03 00:30:45 +08:00
rendered_output.rs Got some feedback from azerupi and added a DummyBook builder 2017-08-02 22:29:28 +08:00
testing.rs Got some feedback from azerupi and added a DummyBook builder 2017-08-02 22:29:28 +08:00
tomlconfig.rs HtmlConfig is no longer optional 2017-06-27 14:01:33 +02:00