Skip to main content

assets plugin for teedoc to add css and js assets to pages or other custom items to pages

Project description

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}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

teedoc-plugin-assets-1.1.2.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

teedoc_plugin_assets-1.1.2-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file teedoc-plugin-assets-1.1.2.tar.gz.

File metadata

  • Download URL: teedoc-plugin-assets-1.1.2.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for teedoc-plugin-assets-1.1.2.tar.gz
Algorithm Hash digest
SHA256 f6d038df885068e0e64cdd738c1015acd9aa6eea086f2177233a917d84f55854
MD5 b5f275bbcec9f49a749cf26fd04f8633
BLAKE2b-256 bd41813081b65a26b31f6e327c4f8bd23ff005f3e610de9f1de57576ec04a551

See more details on using hashes here.

File details

Details for the file teedoc_plugin_assets-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: teedoc_plugin_assets-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for teedoc_plugin_assets-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fa820f3771dca25b9be4c89ba8b75a694863c4a0cce9c3110b46d502a158b860
MD5 e04dbfae5cae2f5da8c47b5c1e409454
BLAKE2b-256 e8c575705dbb8704fc68702223180b630f9c2d9997ec607d79f297838d994c81

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page