Skip to main content

teedoc-plugin-assets

Add css and js items(/files) to pages or other custom items to pages

site_config.json:

{
    "route": {
            "assets": {
                "/static/": "static",
            },
        },
    "plugins": {
        "teedoc-plugin-assets":{
            "from": "pypi",
            "config": {
                "header_items": [
                    "/static/css/custom.css",
                    "<meta name=\"plugin-assets\" content=\"example meta item\">"
                ],
                "footer_items": [
                    "/static/css/custom.js"
                ],
                "env":{
                    "main_color": "#000000"
                }
            }
        },
    }
}

custom.css:

a {
    color: ${main_color}
}

Metadata

Release files for teedoc-plugin-assets 1.1.2

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

Source distribution (sdist)

Source distribution for teedoc-plugin-assets 1.1.2
File Size Uploaded
teedoc-plugin-assets-1.1.2.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for teedoc-plugin-assets 1.1.2
File Interpreter ABI Platform
teedoc_plugin_assets-1.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 7.9 kB

Release files / teedoc-plugin-assets-1.1.2.tar.gz

Download URL teedoc-plugin-assets-1.1.2.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f6d038df885068e0e64cdd738c1015acd9aa6eea086f2177233a917d84f55854
BLAKE2b-256 checksum
How to use checksums
bd41813081b65a26b31f6e327c4f8bd23ff005f3e610de9f1de57576ec04a551
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release files / teedoc_plugin_assets-1.1.2-py3-none-any.whl

Download URL teedoc_plugin_assets-1.1.2-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fa820f3771dca25b9be4c89ba8b75a694863c4a0cce9c3110b46d502a158b860
BLAKE2b-256 checksum
How to use checksums
e8c575705dbb8704fc68702223180b630f9c2d9997ec607d79f297838d994c81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release history Release notifications | RSS feed

This release

1.1.2 This release

2 release files

1.1.1

2 release files

1.1.0

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