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]>
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].
> 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.
>



-- 
Jeremy Ruston
mailto:[email protected]

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

Reply via email to