mdbook-diataxis
A preprocessor for mdBook which helps apply the Diátaxis documentation framework.
Installation
Type and run
This will build mdbook-diataxis from source.
Integrating mdbook-diataxis
Type and run the following command with the path to your book.
You will see that a new [preprocessor.diataxis] table has been added to your book.toml, the [output.html] table has been amended to include the newly-written diataxis.css file.
The Diátaxis directives are now available for use!
Usage
mdbook-diataxis defines the following directives.
{{#diataxis compass}}
Expands to an html representation of the diátaxis compass.
Example:

The text of each part of the compass can be configured via book.toml.
{{#diataxis table-of-contents}}
Expands to a table of contents listing the top-level children of the current chapter. Example:

Configuration
The following is a configuration of mdbook-diataxis which modifies every available field.
This snippet is for demonstration purposes; all fields are optional.
[]
= "new Tutorials title"
= "new Tutorials description"
= "path/to/tutorials.html"
[]
= "new How-to guides title"
= "new How-to guides description"
= "path/to/how-to-guides.html"
[]
= "new Explanation title"
= "new Explanation description"
= "path/to/explanation.html"
[]
= "new Reference title"
= "new Reference description"
= "path/to/reference.html"
License and Author.
This project is licensed under GPLv3.
This project was originally written by Ed Jones. Thank you jf908, for making the grid CSS.