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
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6d038df885068e0e64cdd738c1015acd9aa6eea086f2177233a917d84f55854 |
|
MD5 | b5f275bbcec9f49a749cf26fd04f8633 |
|
BLAKE2b-256 | bd41813081b65a26b31f6e327c4f8bd23ff005f3e610de9f1de57576ec04a551 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa820f3771dca25b9be4c89ba8b75a694863c4a0cce9c3110b46d502a158b860 |
|
MD5 | e04dbfae5cae2f5da8c47b5c1e409454 |
|
BLAKE2b-256 | e8c575705dbb8704fc68702223180b630f9c2d9997ec607d79f297838d994c81 |