Books::BookConfig
Inherits Struct / Value / Object
Configuration from book.toml (mdbook compatibility)
Supported sections from mdbook spec:
- [book]: title, description, authors, language
- [output.html]: git-repository-url, edit-url-template (shown in sidebar/footer)
Not supported (noted for future reference):
- build: extra-watch-dirs, build-dir
- [output.html.*]: mdbook-specific output settings (except the above)
- [output.html.playground]: Rust playground integration
- [output.html.search]: Search config (we have our own search feature)
- [preprocessor.*]: mdbook preprocessor system
Constructors
new(title : String | Nil = nil, authors : Array(String) | Nil = nil, description : String | Nil = nil, language : String | Nil = nil, create_missing : Bool = false, git_repository_url : String | Nil = nil, edit_url_template : String | Nil = nil)
Class methods
from_file(book_toml_path : String) : BookConfig | Nil
ameba:disable Metrics/CyclomaticComplexity
Instance methods
authors
authors=(authors : Array(String) | Nil)
create_missing
ameba:disable Naming/QueryBoolMethods
create_missing=(create_missing : Bool)
ameba:disable Naming/QueryBoolMethods
description
description=(description : String | Nil)
edit_url_template
edit_url_template=(edit_url_template : String | Nil)
git_repository_url
git_repository_url=(git_repository_url : String | Nil)
language
language=(language : String | Nil)
title
title=(title : String | Nil)