// Book RON format (with or without outermost parentheses) // ======================================================= // Book metadata // ------------- // The book is to be deployed in `:///` // // See `stylesdir` and `imaegsdir` in `adoc_opts`. base_url: "", // project structure override src_dir: "src", site_dir: "site", // book metadata authors: ["adbook"], title: "adbook demo site", // Theme settings // ------------- // TODO(adbook): support collapsible sidebar fold_level: Some(0), // whether we copy and use the builtin `src/theme` directory or not use_default_theme: true, // whether generate `/all.adoc` automatically or not generate_all: true, // files in `src/` copied to `site/` includes: [ "static/img", // "theme/css", // "theme/js", // "theme/favicon.svg", ], // manual copy copies: [ // ("static", "site/static"), ], // AsciiDoc files in `src/` converted `site/` directory without being added to sidebar converts: [ // "404.adoc", ], // `asciidoctor` command line options // ---------------------------------- // almost equivalent to adding `:attr: value` in every AsciiDoc file adoc_opts: [ ("-a", [ // default Handlebars template file, relative to the source directroy "hbs@=theme/hbs/article.hbs", // css "linkcss", "stylesdir@={base_url}/theme/css", "stylesheet@=article.css", // image "imagesdir@={base_url}/static/img", "imagesoutdir@={src_dir}/static/img", // preferences "hardbreaks", "sectnums", "sectnumlevels@=2", "tabside@=4", // features "experimental", "stem@=latexmath", "icons@=font", // links (available with `{name}` syntax in AsciiDoc files) "adbook=https://github.com/toyboot4e/adbook[adbook]", "rust=https://www.rust-lang.org/[Rust]", "asciidoctor=https://asciidoctor.org/[Asciidoctor]", "mdbook=https://github.com/rust-lang/mdBook[mdBook]", "handlebars=https://handlebarsjs.com/[Handlebars]", "prismjs=https://prismjs.com/[Prism.js]", ]), ]