mdbook-variables

Crates.iomdbook-variables
lib.rsmdbook-variables
version0.2.4
sourcesrc
created_at2020-03-03 00:34:50.653376
updated_at2023-10-30 17:16:52.432199
descriptionmdBook proprocessor for risolve variables configured from book.toml
homepage
repositoryhttps://gitlab.com/tglman/mdbook-variables
max_upload_size
id214679
size79,918
(tglman)

documentation

README

MdBook Variables preprocessor

A simple preprocessor for mdbook, that look for variable in double brackets and replace with some value that come from the book.toml

Example

SimpleFile.md:

## something

a contentent with a variable {{name}} 

book.toml

#... all the basic detail first and then:

[preprocessor.variables.variables]
name= "my wonderful name"

It does support looking for variable values in the environment variables behind a flag

Toml configured variable right now take precedence on environment variables.


[preprocessor.variables]
use_env = true

[preprocessor.variables.variables]
other_variabled_not_in_env= "value"

The implementation got a lot of inspiration and code from the mdbook links preprocessor an mdbook-plantuml.

Commit count: 44

cargo fmt