Hi Jeremy,
Thank you for taking the time to write a detail reply. Following your
method appears to work in that I can see the default tiddlywiki themes now
in the css, however i am still unable to export my own themes.
my batch is:
tiddlywiki ./tw --load ./notes.html --output ./blog --build static
my tiddlywiki.info contains
{
"plugins": [
],
"themes": [
"tiddlywiki/vanilla",
"welford/phasersonkill",
"welford/readonly"
],
"build": {
"static": [
"--rendertiddler", "$:/core/templates/static.template.css",
"static.css", "text/plain"
]
}}
I can see the vanilla css data within static.css but none of my custom
theme has made it through.
Any idea what else i could be doing wrong?
Thanks,
James
On Tuesday, 2 December 2014 07:49:03 UTC+9, Jeremy Ruston wrote:
>
> Hi James
>
> One small issue is that the output type should be "text/plain":
>
> tiddlywiki --load ./notes.html --output ./ --rendertiddler
> $:/core/templates/static.template.css ./static.css text/plain
>
> The bigger problem is that the --load command doesn't unpack plugins
> contained in the HTML file into shadow tiddlers, which means that your
> generated CSS is missing the CSS from the current theme.
>
> This is happening because you're not specifying a wiki folder on the
> command line. That makes TiddlyWiki start up with an empty in-memory wiki.
> The solution is to create a basic wiki folder that specifies the plugins
> that you'll need when generating the CSS.
>
> 1. Create a new folder
> 2. Add a file called "tiddlywiki.info" with the following content:
>
> {
> "plugins": [
> ],
> "themes": [
> "tiddlywiki/vanilla",
> "tiddlywiki/snowwhite",
> "tiddlywiki/nighttime",
> "tiddlywiki/starlight",
> "tiddlywiki/seamless",
> "tiddlywiki/stickytitles",
> "tiddlywiki/centralised",
> "tiddlywiki/readonly"
> ],
> "build": {
> "static": [
>
> "--rendertiddler","$:/core/templates/static.template.html","static.html","text/plain",
>
> "--rendertiddler","$:/core/templates/alltiddlers.template.html","alltiddlers.html","text/plain",
>
> "--rendertiddlers","[!is[system]]","$:/core/templates/static.tiddler.html","static","text/plain",
>
> "--rendertiddler","$:/core/templates/static.template.css","static/static.css","text/plain"]
> }
> }
>
> 3. Execute the following command in the terminal:
>
> tiddlywiki ./mywikifolder --load ./notes.html --build static
>
> Note that by including the rendertiddler command in the tiddlywiki.info
> you can avoid retyping it and instead trigger it with the build command.
>
> Best wishes
>
> Jeremy.
>
>
>
> On Mon, Dec 1, 2014 at 9:23 PM, James Anderson <[email protected]
> <javascript:>> wrote:
>
>> Hello,
>>
>> I am using a batch file to run the following:
>>
>> tiddlywiki --load ./notes.html --output ./ --rendertiddler
>> $:/core/templates/static.template.css ./static.css text/css
>>
>>
>> Which only seems to export the first css it comes across to static.css,
>> though when I look in notes.html at
>> $:/core/templates/static.template.css it contains all the css tiddlers
>> from my TW.
>>
>> Is there something wrong with my command? Or is there a bug with
>> --rendertiddler ?
>>
>> Thanks,
>> James
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "TiddlyWikiDev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected]
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/tiddlywikidev.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Jeremy Ruston
> mailto:[email protected] <javascript:>
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.