If there is more than one backend, then each backend is placed in a separate directory underneath book.įor example, the above would have directories book/html and book/wordcount. If there is only one backend, then it places its output directly in the book directory (see build.build-dir to override this location). If more than one output table is included, this changes the behavior for the layout of the output directory. If you want to keep the html backend running, then just include it in the book.toml file. If you define any tables, then the html backend is not enabled by default. This table can include additional key-value pairs that are specific to the backend.įor example, if our example backend needed some extra configuration options: With this table, mdBook will execute the mdbook-wordcount backend. Output tablesīackends can be added by including a output table in book.toml with the name of the backend.įor example, if you have a backend called mdbook-wordcount, then you can include it with: See the Third Party Plugins wiki page for a list of available backends.įor information on how to create a new backend, see the Backends for Developers chapter. The community has developed several backends. This is useful for debugging preprocessors. markdown - This outputs the book as markdown after running the preprocessors.This is enabled by default if no other tables are defined in book.toml. Renderers (also called "backends") are responsible for creating the output of the book.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |