6.8 KiB
Changelog
mdBook 0.2.4-alpha
Added
- Added ability to resize the sidebar. #849
- Added
load_with_config_and_summaryfunction toMDBookto be able to build a book with a customSummary. #883 - Set
noindexonprint.htmlpage to prevent robots from indexing it. #844
Changed
- Command-line help output is now colored. #861
- The build directory is now deleted before rendering starts, instead of after if finishes. #878
- Removed dependency on
same-filecrate. #903 - 💥 Renamed
with_preprecessortowith_preprocessor. #906
Fixed
- Fixed file change detection so that
mdbook serveonly reloads once when multiple files are changed at once. #870 - Fixed on-hover color highlighting for links in sidebar. #834
- Fixed loss of focus when clicking the "Copy" button in code blocks. #867
- Fixed incorrectly stripping the path for
additional-jsfiles. #796 - Fixed color of
code spansthat are links. #905 - Fixed "next" navigation on index.html. #916
- Fixed keyboard chapter navigation for
fileurls. #915 - Fixed bad wrapping for inline code on some browsers. #818
- Properly load an existing
SUMMARY.mdinmdbook init. #841 - Fixed some broken links in
print.html. #871
mdBook 0.2.3 (2018-01-18)
Added
- Added an optional button to the top of the page which will link to a git
repository. Use the
git-repository-urlandgit-repository-iconoptions in the[output.html]section to enable it and set its appearance. #802 - Added a
default-themeoption to the[output.html]section. #804
Changed
- 💥 Header ID anchors no longer add an arbitrary
acharacter for headers that start with a non-ascii-alphabetic character. #788
Fixed
mdBook 0.2.2 (2018-10-19)
Added
-
🎉 Process-based custom preprocessors. See the docs for more. #792
-
🎉 Configurable preprocessors.
Added
build.use-default-preprocessorsboolean TOML key to allow disabling the built-inlinksandindexpreprocessors.Added
[preprocessor]TOML tables to configure each preprocessor.Specifying
[preprocessor.links]or[preprocessor.index]will enable the respective built-in preprocessor ifbuild.use-default-preprocessorsisfalse.Added
fn supports_renderer(&self, renderer: &str) -> boolto thePreprocessortrait to specify if the preprocessor supports the given renderer. The default implementation always returnstrue.Preprocessor::runnow takes a book by value instead of a mutable reference. It should return aBookvalue with the intended modifications.Added
PreprocessorContext::rendererto indicate the renderer being used.
Fixed
- Fix paths to additional CSS and JavaScript files #777
- Ensure section numbers are correctly incremented after a horizontal separator #790
mdBook 0.2.1 (2018-08-22)
Changed
- Update to handlebars-rs 1.0 #761
Fixed
- Fix table colors, broken by Stylus -> CSS transition #765
mdBook 0.2.0 (2018-08-02)
Changed
-
💥 This release changes how links are handled in mdBook. Previously, relative links were interpreted relative to the book's root. In
0.2.0+ links are relative to the page they are in, and use the.mdextension. This has several advantages, such as making links work in other markdown viewers like GitHub. You will likely have to change links in your book to accommodate this change. For example, a book with this layout:chapter_1/ section_1.md section_2.md SUMMARY.mdPreviously a link in
section_1.mdtosection_2.mdwould look like this:[section_2](chapter_1/section_2.html)Now it must be changed to this:
[section_2](section_2.md) -
💥
mdbook test --library-pathnow accepts a comma-delimited list of arguments rather than taking all following arguments. This makes it easier to handle the trailing book directory argument without always needing to put--before it. Multiple instances of the option continue to be accepted:mdbook test -L foo -L bar. -
💥
mdbook servehas some of its options renamed for clarity. Seemdbook help servefor details. -
Embedded rust playpens now use the "stable" playground API. #754