semvec/pypi-packages huggingface dataset:
pymdown-env 1.0.1
pymdown extension to inline replace environment variables
License: MIT
Requires Python: >=3.4

# PyMdown pymdown-env extension

*Replaces `~~~${ENV_VAR_HERE}~~~` with the content of the environment variable `ENV_VAR_HERE`*

Useful for generating static sites with `mkdocs` in CI pipelines.

**Disclaimer: Don't blame me if this extension leaks your secret deploy tokens etc.**

## Installation
``` bash
pip install pymdown-env
```

In `mkdocs.yml`:

``` yml
markdown_extensions:
    - pymdown_env
```

## Example
before
``` markdown
[Download version ~~~${VERSION}~~~](/binaries/~~~${VERSION}~~~/myapp.exe)
```

after
``` markdown
[Download version 1.0.0](/binaries/1.0.0/myapp.exe)
```

## License
[MIT](LICENSE.md)