Skip to main content

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

Metadata

Release files for pymdown-env 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pymdown-env 1.0.1
File Size Uploaded
pymdown-env-1.0.1.tar.gz 1.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pymdown-env 1.0.1
File Interpreter ABI Platform
pymdown_env-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 5.1 kB

Release files / pymdown-env-1.0.1.tar.gz

Download URL pymdown-env-1.0.1.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8c6021162bdc37cb8c26c1c2c8caf39a035d6cf07c3b82d3e72dfe48b63dca66
BLAKE2b-256 checksum
How to use checksums
fd983257de1acb00ca90e0d209cdad0acb56a8ef8237d54cd1a2ace7d5f8e406
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / pymdown_env-1.0.1-py3-none-any.whl

Download URL pymdown_env-1.0.1-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1db22c9eb109ef4b7ebd3cf5c72f27e19f8846d8201fe84c0ce6fa93f11179c3
BLAKE2b-256 checksum
How to use checksums
3e409f8e20f34869da0ea8a2bdd4e75b512f3264c14cb43adf00bb65ea2367ac
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page