Hi Xavier

>
> I'm wondering how we can include the current CSS styles into the static
> HTML snapshot?
>
> I've looked at $:/core/templates/css-tiddler and
> $:/core/templates/static.tiddler.html but had no clue of how to combine
> them to get a standalone HTML file with styles...
>

The static build of the default tiddlers that you see at
http://tiddlywiki.com/static.html includes the stylesheets directly into
the HTML file. The template is here:

https://github.com/Jermolene/TiddlyWiki5/blob/master/core%2Ftemplates%2Fstatic.template.html.tid

The static build of individual tiddlers that you see at
http://tiddlywiki.com/static/AllTiddlers.html link to a shared stylesheet.
The templates involved are:

https://github.com/Jermolene/TiddlyWiki5/blob/master/core%2Ftemplates%2Fstatic.tiddler.html.tid
https://github.com/Jermolene/TiddlyWiki5/blob/master/core%2Ftemplates%2Fstatic.template.css.tid

Best wishes

Jeremy.



>
>
> Cheers,
> Xavier.
>
> -- Xavier Cazin
>
> On Thu, Oct 9, 2014 at 2:37 PM, Jeremy Ruston <[email protected]>
> wrote:
>
>>
>> Hi Alex
>>
>> The full command would be:
>>
>> tiddlywiki mywikifolder --rendertiddlers [!is[system]] 
>> $:/core/templates/static.tiddler.html static text/plain
>>
>> Afterwards, you should find a folder "static" in the
>> "mywikifolder/output" folder that contains a static HTML snapshot of each
>> non-system tiddler.
>>
>> Best wishes
>>
>> Jeremy
>>
>>
>> On Wed, Oct 8, 2014 at 10:03 PM, Alex Hough <[email protected]> wrote:
>>
>>> Dear All,
>>>
>>> I've had success with downloading a static TW under node  - love it!
>>>
>>> Now I want to be able to perform some of the operations detailed on
>>> TW.com
>>>
>>> I am not too familiar with the command line and don't understand where
>>> the new site gets saved.
>>>
>>> I cut and paste the following behind "tiddlywiki"
>>>
>>> --rendertiddlers [!is[system]] $:/core/templates/static.tiddler.html 
>>> $TW5_BUILD_OUTPUT/static text/plain \
>>>
>>>
>>> What should I see?
>>>
>>>
>>>
>>> Alex
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "TiddlyWiki" 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/tiddlywiki.
>>> 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
>> "TiddlyWiki" 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/tiddlywiki.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWiki" 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/tiddlywiki.
> 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 
"TiddlyWiki" 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/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to