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.
pip install pymdown-env
In mkdocs.yml
:
markdown_extensions:
- pymdown_env
before
[Download version ~~~${VERSION}~~~](/binaries/~~~${VERSION}~~~/myapp.exe)
after
[Download version 1.0.0](/binaries/1.0.0/myapp.exe)