mdBook/tests
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
..
dummy Fix heading links in nested pages 2017-09-06 00:52:17 -07:00
helpers Fix heading links in nested pages 2017-09-06 00:52:17 -07:00
config.rs HtmlConfig is no longer optional 2017-06-27 14:01:33 +02: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-09-30 15:52:46 +08:00
rendered_output.rs Fix heading links in nested pages 2017-09-06 00:52:17 -07:00
testing.rs Fix build and test warnings 2017-09-06 00:52:17 -07:00
tomlconfig.rs Integrating Ace #247 2017-08-03 22:45:33 -04:00