b2ad669c61
* Add search with elasticlunr.js This commit adds search functionality to mdBook, based on work done by @phaiax. The in-browser search code uses elasticlunr.js to execute the search, using an index generated at book build time by elasticlunr-rs. * Add generator comment Someone on Reddit was wondering how the rust book was generated and said they checked the source. Thought I'd put this here. Might be a good idea to have a little footer "made with mdBook", but this'll do for now. * Remove search/editor file override behavior * Use for loop for book iterator * Improve HTML regex * Fix search CORS in file URIs * Use ammonia to sanitize HTML * Filter html5ever log messages
20 lines
406 B
TOML
20 lines
406 B
TOML
[book]
|
|
title = "mdBook Documentation"
|
|
description = "Create book from markdown files. Like Gitbook but implemented in Rust"
|
|
authors = ["Mathieu David", "Michael-F-Bryan"]
|
|
|
|
[output.html]
|
|
mathjax-support = true
|
|
|
|
[output.html.playpen]
|
|
editable = true
|
|
|
|
[output.html.search]
|
|
limit-results = 20
|
|
use-boolean-and = true
|
|
boost-title = 2
|
|
boost-hierarchy = 2
|
|
boost-paragraph = 1
|
|
expand = true
|
|
heading-split-level = 2
|