Documentation ¶
Overview ¶
Package mdbook is a helper for writing mdbook plugins.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Args ¶
func Args(argv []string)
Args implements handling the expected CLI arguments.
This function calls os.Exit under the right circumstances.
Types ¶
type Book ¶
type Book struct { Sections []Section `json:"sections"` X *struct{} `json:"__non_exhaustive"` }
Book is an mdbook book.
type BookConfig ¶
type BookConfig struct { Authors []string `json:"authors"` Source string `json:"src"` Description string `json:"description"` Language string `json:"language"` Title string `json:"title"` MultiLingual bool `json:"multilingual"` }
BookConfig is the mdbook metadata and configuration.
type Chapter ¶
type Chapter struct { Name string `json:"name"` Content string `json:"content"` Number []int `json:"number"` SubItems []Section `json:"sub_items"` Path *string `json:"path"` SourcePath *string `json:"source_path"` ParentNames []string `json:"parent_names"` }
Chapter is an mdbook chapter.
type Context ¶
type Context struct { Root string `json:"root"` Renderer string `json:"renderer"` Version string `json:"mdbook_version"` Config struct { Book BookConfig `json:"book"` Output map[string]json.RawMessage `json:"output"` } `json:"config"` Preprocessor map[string]json.RawMessage `json:"preprocessor"` }
Context is the whole mdbook context.
Click to show internal directories.
Click to hide internal directories.