mirror of
https://github.com/rust-lang/mdBook
synced 2024-12-13 22:32:35 +00:00
81ab2eb7db
- Added line numbers to config struct - Added playpen_line_numbers field to hbs renderer. - Added section to set `window.playpen_line_numbers = true` in page template - Use line number global variable to show line numbers when required.
21 lines
442 B
TOML
21 lines
442 B
TOML
[book]
|
|
title = "mdBook Documentation"
|
|
description = "Create book from markdown files. Like Gitbook but implemented in Rust"
|
|
authors = ["Mathieu David", "Michael-F-Bryan"]
|
|
language = "en"
|
|
|
|
[output.html]
|
|
mathjax-support = true
|
|
|
|
[output.html.playpen]
|
|
editable = true
|
|
line-numbers = 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
|