Hello all,
I want to use tiddlywiki to generate a (static) website.
I’ve already installed the CLI version of tiddlywiki (Debian Linux), and I’ve added some content to a single HTML file tiddlywiki
Rendering static files (as documented here (RenderCommand) and here (Generating Static Sites with TiddlyWiki)) didn’t work properly, as the generated CSS sheet didn’t have all the CSS required to show the files properly.
I “solved” this by switching from the --render
command, to using a tiddlywiki.info
file, with the following content (copied from the TW github):
{
"description": "Content for https://tiddlywiki.org",
"plugins": [
"tiddlywiki/internals",
"tiddlywiki/katex",
"kookma/refnotes",
"kookma/shiraz",
"tiddlywiki/menubar"
],
"themes": [
"tiddlywiki/vanilla",
"tiddlywiki/snowwhite"
],
"languages": [
"es-ES"
],
"build": {
"index": [
"--savetiddlers","[tag[external-image]]","images",
"--setfield","[tag[external-image]]","_canonical_uri","$:/core/templates/canonical-uri-external-image","text/plain",
"--setfield","[tag[external-image]]","text","","text/plain",
"--render","$:/core/save/all","index.html","text/plain"],
"readmes": [
"--render","[[Code of Conduct]]","code-of-conduct.md","text/html"],
"favicon": [
"--savetiddler","$:/favicon.ico","favicon.ico"],
"static": [
"--render","$:/core/templates/static.template.html","static.html","text/plain",
"--render","[!is[system]]","[encodeuricomponent[]addprefix[static/]addsuffix[.html]]","text/plain","$:/core/templates/static.tiddler.html",
"--render","$:/core/templates/static.template.css","static/static.css","text/plain"
]
},
"config": {
"retain-original-tiddler-path": true
}
}
And now I run tiddlywiki --import blog.html 'text/html' --build static
(blog.html
is my single-file TW). This has worked well, but…
I’ve added non-core plugins (shiraz, refnotes), and when I run that command
- I get some warnings (
Cannot find plugin 'kookma/refnotes'
and similar) - The rendered output doesn’t show anything that uses functionality from those plugins.
I have two questions:
- Am I doing something wrong here, and if so how can I fix it?
- Am I just “holding it wrong” and should go check some piece of the doc. that I missed?
I feel I’m missing something, conceptually, here.