mdBook/src
boxdot e461610dab Implement partial include of source files (#520)
* Implement partial include of source files.

The macro `{{include some_file}}` accepts now optional line number
arguments, s.t. the specified line range is included. The following
forms are supported:

* `{{include some_file::}}` is equivalent to `{{include some_file}}`
* `{{include some_file:from:}}` includes lines [from, infinity)
* `{{include some_file::to}}` includes lines [0, to]
* `{{include some_file:from:to}}` includes lines [from, to]

* Remove the special case IncludeFull which is IncludeFrom(0).

* Use Range, RangeFrom, RangeTo and RangeFull to represent include-ranges.

Also:
* Move out introduced methods as free functions.
* Introduce RangeArgument trait as long it is unstable in stdlib.
* Use itertools for joining of lines on the fly.
* Split tests.
* Simplify include file argument parsing.

* Make utils::string private and link collections_range feature issue.
2018-01-06 05:03:30 +08:00
..
bin You need to call `rx.iter()` to iterate over events from a channel (#522) 2018-01-03 19:32:49 +08:00
book Updated dependencies and made logging more readable 2017-12-30 18:43:46 +08:00
preprocess Implement partial include of source files (#520) 2018-01-06 05:03:30 +08:00
renderer Added better error messages for missing CSS/JS 2017-12-14 20:03:17 +11:00
theme Use <button> for menu bar (#523) 2018-01-04 17:19:20 +08:00
utils Implement partial include of source files (#520) 2018-01-06 05:03:30 +08:00
config.rs Implement playpen defaults 2017-12-21 00:18:12 -05:00
lib.rs Implement partial include of source files (#520) 2018-01-06 05:03:30 +08:00