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-markdown-parser":{
"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
Close
Hashes for teedoc-plugin-assets-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28b8ae575bebf0b9b705a1ab895ea1b64d469429643bd0917618abdf5243efd6 |
|
MD5 | 407dcdb3684b99a7324102cf11b2c5a9 |
|
BLAKE2b-256 | 4bad5c4b79ad2c3714d789ea796b5706c58fd2c7e9b5f4763062565638165a4e |
Close
Hashes for teedoc_plugin_assets-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fba545c19bf13a0f6d0938d18af897b193cb5a2bd1dfac5a0533b3ad6fe1a09 |
|
MD5 | 22d42cd469dda41544b3690941c3f5b4 |
|
BLAKE2b-256 | 4941512b6df94564c42aa603d16e4746d352244a1450fbda0e82695379a3c1e0 |