kheast / pymdown-env

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:MIT License


Languages

Language:Python 100.0%