struct Books::BookConfig

Overview

Configuration from book.toml (mdbook compatibility)

Supported sections from mdbook spec:

Not supported (noted for future reference):

Defined in:

books.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.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) #

[View source]

Class Method Detail

def self.from_file(book_toml_path : String) : BookConfig | Nil #

ameba:disable Metrics/CyclomaticComplexity


[View source]

Instance Method Detail

def authors : Array(String) | Nil #

[View source]
def authors=(authors : Array(String) | Nil) #

[View source]
def create_missing : Bool #

ameba:disable Naming/QueryBoolMethods


[View source]
def create_missing=(create_missing : Bool) #

ameba:disable Naming/QueryBoolMethods


[View source]
def description : String | Nil #

[View source]
def description=(description : String | Nil) #

[View source]
def edit_url_template : String | Nil #

[View source]
def edit_url_template=(edit_url_template : String | Nil) #

[View source]
def git_repository_url : String | Nil #

[View source]
def git_repository_url=(git_repository_url : String | Nil) #

[View source]
def language : String | Nil #

[View source]
def language=(language : String | Nil) #

[View source]
def title : String | Nil #

[View source]
def title=(title : String | Nil) #

[View source]