/pymdown-env

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

Primary LanguagePythonMIT LicenseMIT

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

pip install pymdown-env

In mkdocs.yml:

markdown_extensions:
    - pymdown_env

Example

before

[Download version ~~~${VERSION}~~~](/binaries/~~~${VERSION}~~~/myapp.exe)

after

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

License

MIT