All the markdowns
All The Markdowns!

This is a mdbook preprocessor that will walk a specified base path and add all the markdowns to your mdbook. This is pretty naive and will probably work best for smaller projects but feel free to give it a go for any folder structure!

Configuration

The preprocessor can be configured with the following settings:

```toml [preprocessor.all-the-markdowns]

The title to use in the index on the left.

Can be useful if book also consist of static content.

section_title = "Auto generated"

The base directory to scrape, this is usually the root of your project.

base = "./examples/example-folder"

Paths to ignore. No matter where you set your base you can always ignore given

patterns. These needs to be relative to the base since the directory traverser

will match if a file or director starts with any of these patterns.

ignore = [] ```

Example

Given the following folder structure:

sh . ├── my-libraries │   └── lib-biz │   ├── INSTALLATION.md │   ├── README.md │   ├── sub-lib-a │   │   └── README.md │   └── sub-lib-b │   └── README.md └── my-services ├── service-bar │   └── README.md └── service-foo └── README.md

Based on the title in each document, combined with the folder names as title case, the preprocessor would render the following:

example

Test

You can test rendering any of the example folders in this directory with the book found in examples/book1 with mdbook serve examples/book1.