diff --git a/book-example/assets/images/structs-v0-0-16.png b/book-example/assets/images/structs-v0-0-16.png index 9eb2cced..bc4e7cc3 100644 Binary files a/book-example/assets/images/structs-v0-0-16.png and b/book-example/assets/images/structs-v0-0-16.png differ diff --git a/book-example/assets/images/structs-v0-0-16.pum b/book-example/assets/images/structs-v0-0-16.pum index 2ecab4b9..fcc45436 100644 --- a/book-example/assets/images/structs-v0-0-16.pum +++ b/book-example/assets/images/structs-v0-0-16.pum @@ -5,13 +5,14 @@ namespace book { class MDBook { project_root: PathBuf, template_dir: PathBuf, + src_base: PathBuf, dest_base: PathBuf, render_intent: RenderIntent, translations: HashMap, indent_spaces: i32, - livereload: bool, + pub livereload_script: Option, new(project_root) } @@ -24,15 +25,19 @@ class book::Book { } class book::Chapter { - title: String, - path: PathBuf, - dest_path: Option, - authors: Option>, - translators: Option>, - description: Option, - css_class: Option, + pub title: String, + pub content: Option, - new(title, path) + src_path: Option, + dest_path: Option, + + pub translation_links: Option>, + pub authors: Option>, + pub translators: Option>, + pub description: Option, + pub css_class: Option, + + new(title, src_path) } } @@ -40,20 +45,20 @@ class book::Chapter { namespace book::bookconfig { class BookConfig { - dest: PathBuf, - src: PathBuf, + pub dest: PathBuf, + pub src: PathBuf, - title: String, - subtitle: Option, - description: Option, - language: Language, - authors: Vec, - translators: Option>, - publisher: Option, - number_format: NumberFormat, - section_names: Vec, - is_main_book: bool, - is_multilang: bool, + pub title: String, + pub subtitle: Option, + pub description: Option, + pub language: Language, + pub authors: Vec, + pub translators: Option>, + pub publisher: Option, + pub number_format: NumberFormat, + pub section_names: Vec, + pub is_main_book: bool, + pub is_multilang: bool, new(project_root) } @@ -92,9 +97,9 @@ enum NumberFormat { namespace book::toc { class TocContent { - chapter: Chapter, - sub_items: Option>, - section: Option>, + pub chapter: Chapter, + pub sub_items: Option>, + pub section: Option>, } enum TocItem {