Michael Bryan
ff9e0b0add
Made sure create_missing also creates the parent directory
2017-12-11 17:29:32 +11:00
Michael Bryan
148511eceb
Able to parse all existing SUMMARY.md files
2017-12-11 17:20:05 +11:00
Michael Bryan
f5e9b857de
Rewrote summary parser from a state machine to use recursive descent
2017-12-11 15:17:20 +11:00
Michael Bryan
4f4e86db3a
Added tests to make sure we parse existing SUMMARY.md's
2017-12-11 12:26:11 +11:00
Michael Bryan
ebcf41c25b
Improved error messages using error_chain::ChainedError::display_chain()
2017-12-11 11:42:36 +11:00
Michael Bryan
1b51cd244e
Moved the book examples to the top level lib.rs
2017-12-11 11:29:30 +11:00
Michael Bryan
be4654c9c2
Fleshed out the docs for the book module
2017-12-11 11:24:43 +11:00
Michael Bryan
ace0b51fb6
Put the `create_missing` feature back in
2017-12-11 10:32:35 +11:00
Michael Bryan
9950f69c48
Removed the `MDBook::read_config()` method because it's redundant now
2017-12-10 23:13:46 +11:00
Michael Bryan
751da4f05f
Added a test to make sure you can include rust files in chapters
2017-12-10 22:59:35 +11:00
Michael Bryan
527fc5cf79
Completely removed the `create_missing` option from MDBook
2017-12-10 22:52:20 +11:00
Michael Bryan
f993677626
All tests finally pass!
2017-12-10 22:52:00 +11:00
Michael Bryan
21498631b3
Made sure the dummy book can build
2017-12-10 22:50:57 +11:00
Michael Bryan
8b21da9950
Fleshed out book creation
2017-12-10 22:50:57 +11:00
Michael Bryan
47eb4788cb
Introduced the `BookBuilder`.
...
- You now use a `BookBuilder` for creating a book directory tree
- This also removes the `--no-create` argument
2017-12-10 22:49:40 +11:00
Michael Bryan
cafb8b75e7
The library not compiles (probably completely broken)
2017-12-10 22:44:20 +11:00
Michael Bryan
4c6c696c87
Copied across the summary parser and Book structure (doesn't compile)
2017-12-10 22:43:12 +11:00
Michael Bryan
8ee795045a
Added a quick fix so if the config isn't found we use a default
2017-12-09 20:36:23 +11:00
Michael Bryan
e735bc6d3e
Merge pull request #500 from cspiegel/create-missing
...
WIP: Add a create-missing option to book.toml.
2017-12-06 00:30:49 +08:00
projektir
32df76d077
Adding a header partial integration #453
2017-11-30 21:48:29 -08:00
Chris Spiegel
b0b09bad3f
Clean up build configuration.
...
This rolls all "create missing" handling into BuildConfig, and moves the
build-dir option from the "book" table to the "build" table. Some
documentation cleanup surrounding the build table is also updated.
2017-11-30 07:39:58 -08:00
Chris Spiegel
93874edebf
Add a create-missing option to book.toml.
2017-11-29 20:02:58 -08:00
Anna Liao
5ce05a79be
updated links from azerupi to rust-lang-nursery ( #489 )
2017-11-22 11:35:18 +01:00
Jacob Wahlgren
3d5eb48e32
Refactor navigation helpers ( #465 )
...
* Refactor navigation helpers
* Target::find: take previous_item by reference
This makes more sense for find as an interface, though it causes a
second clone in some cases. Maybe rustc is smart here?
* Test next and previous navigation helpers
* Add more next/previous tests
2017-11-18 19:17:26 +08:00
Michael Bryan
5eff572dbb
Updated the warning to give some basic migration instructions
2017-11-12 21:37:39 +08:00
Michael Bryan
238dfb7d1d
Added in legacy config format support
2017-11-12 21:37:38 +08:00
Michael Bryan
c25c5d72c8
Went back and simplified Config to be a smart wrapper around toml::Table
2017-11-12 21:37:38 +08:00
Michael Bryan
3aa6436679
Added in things from @Phaiax's review
2017-11-12 21:37:38 +08:00
Michael Bryan
d37821c194
Rebased after #438
2017-11-12 21:37:38 +08:00
Michael Bryan
1b5137c84e
All tests pass again :)
2017-11-12 21:37:37 +08:00
Michael Bryan
18c725ee12
Integration tests pass again
2017-11-12 21:37:37 +08:00
Michael Bryan
1743f2a39f
Removed the now redundant config files
2017-11-12 21:37:37 +08:00
Michael Bryan
cee3296a32
main library tests pass
2017-11-12 21:37:37 +08:00
Michael Bryan
ddb0834da8
Upgraded binaries to new configuration API
2017-11-12 21:37:36 +08:00
Michael Bryan
b74c2c18ef
Removed all references to old the configuration from the html renderer
2017-11-12 21:37:36 +08:00
Michael Bryan
c056b5cbd0
Removed old configs from MDBook
2017-11-12 21:37:36 +08:00
Michael Bryan
8d7970b32d
Changed to the new config types
2017-11-12 21:37:36 +08:00
Michael Bryan
1d22a9a040
Added some basic deserializing tests and helpers
2017-11-12 21:37:36 +08:00
Michael Bryan
6059883229
Added some basic configuration objects
2017-11-12 21:37:35 +08:00
Michael Bryan
79dd03e8e9
Merge pull request #471 from stgn/theme-popup-absolute
...
Use absolute positioning for theme popup
2017-11-10 13:31:12 +08:00
François
aecc403fb8
add tooltip to icons ( #477 )
...
add tooltip to icons and previous/next chapter links
2017-10-27 14:46:55 +02:00
Mathieu David
cd711bfb1c
Merge pull request #456 from Michael-F-Bryan/conditional-ga
...
Conditional Google Analytics
2017-10-18 14:10:53 +02:00
Mathieu David
afd9ccb7b1
Merge pull request #461 from Michael-F-Bryan/move-custom-js
...
Custom JS belongs at the bottom
2017-10-18 14:09:14 +02:00
Shane Nelson
dd3bef8000
Use absolute positioning for theme popup
2017-10-16 21:40:32 -04:00
Jacob Wahlgren
7e5892bd35
Ignore unhelpful clippy warning
...
As discussed in https://github.com/azerupi/mdBook/pull/466
2017-10-12 22:14:48 +02:00
Jacob Wahlgren
56cee872e8
Box Handlebars template error
...
See https://github.com/azerupi/mdBook/pull/466#issuecomment-335450110
2017-10-12 21:50:33 +02:00
Michael Bryan
a554390aa2
Slightly cleaned up the google analytics tag (skip ci)
2017-10-09 09:53:02 +08:00
Jacob Wahlgren
8f6523a94c
Fix some clippy warnings
2017-10-07 18:11:05 +02:00
Michael Bryan
ac9c150902
Moved custom JS to the bottom
2017-10-04 19:59:10 +08:00
Michael Bryan
f2e56c887b
Got the logic around the wrong way
2017-10-04 19:57:06 +08:00