pymdown extension to inline replace environment variables
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pymdown-env-1.0.1.tar.gz.
File metadata
- Download URL: pymdown-env-1.0.1.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c6021162bdc37cb8c26c1c2c8caf39a035d6cf07c3b82d3e72dfe48b63dca66
|
|
| MD5 |
bffd6221ccdbb9bb104a0ddc1b8d5c59
|
|
| BLAKE2b-256 |
fd983257de1acb00ca90e0d209cdad0acb56a8ef8237d54cd1a2ace7d5f8e406
|
File details
Details for the file pymdown_env-1.0.1-py3-none-any.whl.
File metadata
- Download URL: pymdown_env-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1db22c9eb109ef4b7ebd3cf5c72f27e19f8846d8201fe84c0ce6fa93f11179c3
|
|
| MD5 |
3f66aaf3e4c0be1d825e0485eaf261db
|
|
| BLAKE2b-256 |
3e409f8e20f34869da0ea8a2bdd4e75b512f3264c14cb43adf00bb65ea2367ac
|