| Crates.io | mdbook-environment |
| lib.rs | mdbook-environment |
| version | 0.0.4 |
| created_at | 2025-03-21 13:39:02.656089+00 |
| updated_at | 2025-03-24 16:12:35.63809+00 |
| description | A preprocessor for MdBook for working with environment variables. |
| homepage | |
| repository | https://github.com/keygenqt/mdbook-environment |
| max_upload_size | |
| id | 1600513 |
| size | 142,775 |
A preprocessor for MdBook for working with environment variables.
book.toml
[preprocessor.environment]
# Just set environment
ENV_MDBOOK_VERSION1 = "0.0.1"
# Set environment with execute command
ENV_MDBOOK_VERSION2 = "$(curl -s 'https://api.github.com/repos/rust-lang/mdBook/tags' | jq -r '.[0].name' | sed 's/v//')"
chapter_1.md
Just set environment: {{ENV_MDBOOK_VERSION1}}.
Set environment with execute command: {{ENV_MDBOOK_VERSION2}}.

Copyright 2025 Vitaliy Zarubin
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.