Re: [tw5] Tutorial: How to use TiddlyWiki as a static website generator

2020-05-02 Thread Mohammad
Hi Jeremy,
 I have summarized the issue and posted in an new thread!

https://groups.google.com/d/msg/tiddlywiki/I-6KJelOUD0/yZx68xfiAAAJ


Best
Mohammad

On Saturday, May 2, 2020 at 5:17:49 PM UTC+4:30, Jeremy Ruston wrote:
>
> Hi Mohammad
>
> Not at all, my apologies for posting a response without properly testing 
> it. I’m now very confused about what the original problem was, please could 
> you kindly restate the problem, ideally with reference to the existing core 
> templates?
>
> Best wishes
>
> Jeremy
>
>
>
> On 1 May 2020, at 11:23, Mohammad > 
> wrote:
>
> Hi Jeremy
>  Many thanks and sorry for taking your time.
>
> On Friday, May 1, 2020 at 1:53:17 PM UTC+4:30, Jeremy Ruston wrote:
>>
>> Hi Mohammad
>>
>> Apologies, I’d missed a bit off the content of the new wrapper template. 
>> Try this:
>>
>> <$view tiddler="$:/mytemplate" mode="htmlwikified" mode="inline”/>
>>
>
> This seems to be corrected as below
>
> <$view tiddler="$:/mytemplate" format="htmlwikified" mode="inline”/>
>
>  
>
>>
>> Where “$:/mytemplate” is the title of the template you were using before 
>> (ie the title of the template we’re wrapping).
>>
>> Best wishes
>>
>> Jeremy.
>>
>>
> The standard template which I uses a modified one seems have backticks. 
> Following is the standard template for rendering tiddlers with very little 
> modification
>
> \define tv-wikilink-template() $uri_doubleencoded$.html
> \define tv-config-toolbar-icons() no
> \define tv-config-toolbar-text() no
> \define tv-config-toolbar-class() tc-btn-invisible
> \import [[$:/core/ui/PageMacros]] 
> [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]
> `
> 
> 
> 
> 
>  />
> 
> 
>  content="black-translucent" />
> 
> 
> 
>  href='https://fonts.googleapis.com/css?family=Open+Sans:400,700,700italic,400italic'
>  
> rel='stylesheet' type='text/css 
> 
> '>
> 
> `<$view field="caption"><$view field="title"/>: 
> {{$:/core/wiki/title}}`
> 
> 
> `
>
> {{$:/kookma/static-header||$:/core/templates/html-tiddler}}
>
> `
> `
> <$view tiddler="$:/kookma/template/static-view-template" 
> format="htmlwikified"/>
> `
> 
> `
> {{$:/kookma/aside-left||$:/core/templates/html-tiddler}}
> `
> `
> {{$:/kookma/aside-right||$:/core/templates/html-tiddler}}
> `
> `
> {{$:/kookma/static-footer||$:/core/templates/html-tiddler}}
> `
> 
> `
>
>  
> When I use the wrapper template in my case "$:/kookma/mytemplate-wrapper" 
> with below content as your advise
>
> <$view tiddler="$:/kookma/templates/static.tiddler.html" 
> mode="htmlwikified" mode="inline”/>
>
> I see something like this in Wiki 
>
> !doctype html html head meta 
> http-equiv=Content-Type 
> content=text/html;charset=utf-8 / meta 
> name=generator content=TiddlyWiki / meta 
> name=tiddlywiki-version content=5.1.22 
> / meta name=viewport content=width=device-width, 
> initial-scale=1.0 / meta 
> name=apple-mobile-web-app-capable content=yes / 
> meta name=apple-mobile-web-app-status-bar-style 
> content=black-translucent / meta 
> name=mobile-web-app-capable content=yes/ 
> meta name=format-detection 
> content=telephone=no link id=faviconLink 
> rel=shortcut icon href=favicon.ico link 
> href='https://fonts.googleapis.com/css?family=Open+Sans:400,700,700italic,400italic'
>  
> rel='stylesheet 
> '
>  
> type='text/css' link rel=stylesheet 
> href=static.css 
> title$:/kookma/mytemplate-wrapper: Generate Static Website — 
> a tutorial for generate websits using Tiddlywiki/title 
> /head body class=hg header 
> class=hg-header pGenerate Static 
> Website/p /header main 
> class=hg-main pdiv 
> class=tc-tiddler-frame tc-tiddler-view-frame tc-tiddler-exists 
> tc-tiddler-system  data-tags= 
> data-tiddler-title=$:/kookma/mytemplate-wrapperdiv 
> class= tc-reveal hidden=true/div 
> span class=tc-errorRecursive transclusion error in 
> transclude widget/span /div /p /main 
> aside class=hg-left  
> pstrongContents/strong/ppul 
> class=/ul/p /aside aside 
> class=hg-right pAds/p 
> /aside footer class=hg-footer 
> pThis is a footer/p /footer /body 
> /html
>
>
> And when I build the static pages using
>
> tiddlywiki --build jeremy
>
> with jeremy in my tiddlywiki.info as below
>
> "jeremy":[
> "--rendertiddlers", "[!is[system]tag[public]]", 
> "$:/kookma/mytemplate-wrapper", "static", "text/plain",
> "--rendertiddler", "$:/kookma/templates/static.template.css", 
> "static/static.css", "text/plain" 
> ] 
>
> I get the wrong results as below: for example this is tutorial tiddler 
> rendered as tutorial.html
>
> content="text/html;charset=utf-8" />  content="TiddlyWiki" />  />  
>   name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> 
>   name="format-detection" content="telephone=no">  rel="shortcut icon" href="favicon.ico">  

Re: [tw5] Tutorial: How to use TiddlyWiki as a static website generator

2020-05-02 Thread Mohammad
Hi Jeremy,
 Sure, I create a new thread and restate the issue with reference and 
summary to this thread!

Best wishes
Mohammad


On Saturday, May 2, 2020 at 5:17:49 PM UTC+4:30, Jeremy Ruston wrote:
>
> Hi Mohammad
>
> Not at all, my apologies for posting a response without properly testing 
> it. I’m now very confused about what the original problem was, please could 
> you kindly restate the problem, ideally with reference to the existing core 
> templates?
>
> Best wishes
>
> Jeremy
>
>
>
> On 1 May 2020, at 11:23, Mohammad > 
> wrote:
>
> Hi Jeremy
>  Many thanks and sorry for taking your time.
>
> On Friday, May 1, 2020 at 1:53:17 PM UTC+4:30, Jeremy Ruston wrote:
>>
>> Hi Mohammad
>>
>> Apologies, I’d missed a bit off the content of the new wrapper template. 
>> Try this:
>>
>> <$view tiddler="$:/mytemplate" mode="htmlwikified" mode="inline”/>
>>
>
> This seems to be corrected as below
>
> <$view tiddler="$:/mytemplate" format="htmlwikified" mode="inline”/>
>
>  
>
>>
>> Where “$:/mytemplate” is the title of the template you were using before 
>> (ie the title of the template we’re wrapping).
>>
>> Best wishes
>>
>> Jeremy.
>>
>>
> The standard template which I uses a modified one seems have backticks. 
> Following is the standard template for rendering tiddlers with very little 
> modification
>
> \define tv-wikilink-template() $uri_doubleencoded$.html
> \define tv-config-toolbar-icons() no
> \define tv-config-toolbar-text() no
> \define tv-config-toolbar-class() tc-btn-invisible
> \import [[$:/core/ui/PageMacros]] 
> [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]
> `
> 
> 
> 
> 
>  />
> 
> 
>  content="black-translucent" />
> 
> 
> 
>  href='https://fonts.googleapis.com/css?family=Open+Sans:400,700,700italic,400italic'
>  
> rel='stylesheet' type='text/css 
> 
> '>
> 
> `<$view field="caption"><$view field="title"/>: 
> {{$:/core/wiki/title}}`
> 
> 
> `
>
> {{$:/kookma/static-header||$:/core/templates/html-tiddler}}
>
> `
> `
> <$view tiddler="$:/kookma/template/static-view-template" 
> format="htmlwikified"/>
> `
> 
> `
> {{$:/kookma/aside-left||$:/core/templates/html-tiddler}}
> `
> `
> {{$:/kookma/aside-right||$:/core/templates/html-tiddler}}
> `
> `
> {{$:/kookma/static-footer||$:/core/templates/html-tiddler}}
> `
> 
> `
>
>  
> When I use the wrapper template in my case "$:/kookma/mytemplate-wrapper" 
> with below content as your advise
>
> <$view tiddler="$:/kookma/templates/static.tiddler.html" 
> mode="htmlwikified" mode="inline”/>
>
> I see something like this in Wiki 
>
> !doctype html html head meta 
> http-equiv=Content-Type 
> content=text/html;charset=utf-8 / meta 
> name=generator content=TiddlyWiki / meta 
> name=tiddlywiki-version content=5.1.22 
> / meta name=viewport content=width=device-width, 
> initial-scale=1.0 / meta 
> name=apple-mobile-web-app-capable content=yes / 
> meta name=apple-mobile-web-app-status-bar-style 
> content=black-translucent / meta 
> name=mobile-web-app-capable content=yes/ 
> meta name=format-detection 
> content=telephone=no link id=faviconLink 
> rel=shortcut icon href=favicon.ico link 
> href='https://fonts.googleapis.com/css?family=Open+Sans:400,700,700italic,400italic'
>  
> rel='stylesheet 
> '
>  
> type='text/css' link rel=stylesheet 
> href=static.css 
> title$:/kookma/mytemplate-wrapper: Generate Static Website — 
> a tutorial for generate websits using Tiddlywiki/title 
> /head body class=hg header 
> class=hg-header pGenerate Static 
> Website/p /header main 
> class=hg-main pdiv 
> class=tc-tiddler-frame tc-tiddler-view-frame tc-tiddler-exists 
> tc-tiddler-system  data-tags= 
> data-tiddler-title=$:/kookma/mytemplate-wrapperdiv 
> class= tc-reveal hidden=true/div 
> span class=tc-errorRecursive transclusion error in 
> transclude widget/span /div /p /main 
> aside class=hg-left  
> pstrongContents/strong/ppul 
> class=/ul/p /aside aside 
> class=hg-right pAds/p 
> /aside footer class=hg-footer 
> pThis is a footer/p /footer /body 
> /html
>
>
> And when I build the static pages using
>
> tiddlywiki --build jeremy
>
> with jeremy in my tiddlywiki.info as below
>
> "jeremy":[
> "--rendertiddlers", "[!is[system]tag[public]]", 
> "$:/kookma/mytemplate-wrapper", "static", "text/plain",
> "--rendertiddler", "$:/kookma/templates/static.template.css", 
> "static/static.css", "text/plain" 
> ] 
>
> I get the wrong results as below: for example this is tutorial tiddler 
> rendered as tutorial.html
>
> content="text/html;charset=utf-8" />  content="TiddlyWiki" />  />  
>   name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> 
>   name="format-detection" content="telephone=no">  rel="shortcut icon" href="favicon.ico">  href='https://fonts.googleapis.com/css?family=Open+Sans:400,700,700italic,400italic'
>  

Re: [tw5] Tutorial: How to use TiddlyWiki as a static website generator

2020-05-02 Thread Jeremy Ruston
Hi Mohammad

Not at all, my apologies for posting a response without properly testing it. 
I’m now very confused about what the original problem was, please could you 
kindly restate the problem, ideally with reference to the existing core 
templates?

Best wishes

Jeremy



> On 1 May 2020, at 11:23, Mohammad  wrote:
> 
> Hi Jeremy
>  Many thanks and sorry for taking your time.
> 
> On Friday, May 1, 2020 at 1:53:17 PM UTC+4:30, Jeremy Ruston wrote:
> Hi Mohammad
> 
> Apologies, I’d missed a bit off the content of the new wrapper template. Try 
> this:
> 
> <$view tiddler="$:/mytemplate" mode="htmlwikified" mode="inline”/>
> 
> This seems to be corrected as below
> 
> <$view tiddler="$:/mytemplate" format="htmlwikified" mode="inline”/>
> 
>  
> 
> Where “$:/mytemplate” is the title of the template you were using before (ie 
> the title of the template we’re wrapping).
> 
> Best wishes
> 
> Jeremy.
> 
> 
> The standard template which I uses a modified one seems have backticks. 
> Following is the standard template for rendering tiddlers with very little 
> modification
> 
> \define tv-wikilink-template() $uri_doubleencoded$.html
> \define tv-config-toolbar-icons() no
> \define tv-config-toolbar-text() no
> \define tv-config-toolbar-class() tc-btn-invisible
> \import [[$:/core/ui/PageMacros]] 
> [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]
> `
> 
> 
> 
> 
> 
> 
> 
>  content="black-translucent" />
> 
> 
> 
>  href='https://fonts.googleapis.com/css?family=Open+Sans:400,700,700italic,400italic'
>  rel='stylesheet' type='text/css'>
> 
> `<$view field="caption"><$view field="title"/>: 
> {{$:/core/wiki/title}}`
> 
> 
> `
> 
> {{$:/kookma/static-header||$:/core/templates/html-tiddler}}
> 
> `
> `
> <$view tiddler="$:/kookma/template/static-view-template" 
> format="htmlwikified"/>
> `
> 
> `
> {{$:/kookma/aside-left||$:/core/templates/html-tiddler}}
> `
> `
> {{$:/kookma/aside-right||$:/core/templates/html-tiddler}}
> `
> `
> {{$:/kookma/static-footer||$:/core/templates/html-tiddler}}
> `
> 
> `
> 
>  
> When I use the wrapper template in my case "$:/kookma/mytemplate-wrapper" 
> with below content as your advise
> 
> <$view tiddler="$:/kookma/templates/static.tiddler.html" mode="htmlwikified" 
> mode="inline”/>
> 
> I see something like this in Wiki 
> 
> !doctype html html head meta 
> http-equiv=Content-Type 
> content=text/html;charset=utf-8 / meta 
> name=generator content=TiddlyWiki / meta 
> name=tiddlywiki-version content=5.1.22 
> / meta name=viewport content=width=device-width, 
> initial-scale=1.0 / meta 
> name=apple-mobile-web-app-capable content=yes / 
> meta name=apple-mobile-web-app-status-bar-style 
> content=black-translucent / meta 
> name=mobile-web-app-capable content=yes/ meta 
> name=format-detection content=telephone=no 
> link id=faviconLink rel=shortcut icon 
> href=favicon.ico link 
> href='https://fonts.googleapis.com/css?family=Open+Sans:400,700,700italic,400italic'
>  rel='stylesheet' type='text/css' link rel=stylesheet 
> href=static.css 
> title$:/kookma/mytemplate-wrapper: Generate Static Website — a 
> tutorial for generate websits using Tiddlywiki/title 
> /head body class=hg header 
> class=hg-header pGenerate Static 
> Website/p /header main 
> class=hg-main pdiv 
> class=tc-tiddler-frame tc-tiddler-view-frame tc-tiddler-exists 
> tc-tiddler-system  data-tags= 
> data-tiddler-title=$:/kookma/mytemplate-wrapperdiv 
> class= tc-reveal hidden=true/div span 
> class=tc-errorRecursive transclusion error in transclude 
> widget/span /div /p /main aside 
> class=hg-left  
> pstrongContents/strong/ppul 
> class=/ul/p /aside aside 
> class=hg-right pAds/p 
> /aside footer class=hg-footer 
> pThis is a footer/p /footer /body 
> /html
> 
> 
> And when I build the static pages using
> 
> tiddlywiki --build jeremy
> 
> with jeremy in my tiddlywiki.info as below
> 
>   "jeremy":[
>   "--rendertiddlers", "[!is[system]tag[public]]", 
> "$:/kookma/mytemplate-wrapper", "static", "text/plain",
>   "--rendertiddler", 
> "$:/kookma/templates/static.template.css", "static/static.css", "text/plain" 
>   ]   
> 
> I get the wrong results as below: for example this is tutorial tiddler 
> rendered as tutorial.html
> 
> content="text/html;charset=utf-8" />  content="TiddlyWiki" />  
>  
>   name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> 
>   name="format-detection" content="telephone=no">  rel="shortcut icon" href="favicon.ico">  href='https://fonts.googleapis.com/css?family=Open+Sans:400,700,700italic,400italic'
>  rel='stylesheet' type='text/css'>  
> Tutorials: Generate Static Website — a tutorial for generate websits 
> using Tiddlywiki
> Generate Static Websiteclass="tc-tiddler-frame tc-tiddler-view-frame tc-tiddler-exists 
> tc-tagged-public" data-tags="public" data-tiddler-title="Tutorials"> class=" tc-reveal" hidden="true"> Part iURLs - the strings of letters and 
> symbols that 

Re: [tw5] Tutorial: How to use TiddlyWiki as a static website generator

2020-05-02 Thread Jeremy Ruston
Hi BurningTreeC

> On 2 May 2020, at 06:30, BurningTreeC  wrote:
> 
> '[!is[system]]'  works for both bash and zsh, while [!is[system]] doesn't 
> work for zsh... some users (like me) use zsh as their default shell, so maybe 
> it's better to update the docs :)

This has indeed tripped up a couple of people recently, might you be able to 
put together a PR?

Many thanks,

Jeremy

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/610BE4B1-245E-4CC7-9E29-F95B2C325B07%40gmail.com.


Re: [tw5] Tutorial: How to use TiddlyWiki as a static website generator

2020-05-01 Thread Mohammad
Hi Jeremy
 Many thanks and sorry for taking your time.

On Friday, May 1, 2020 at 1:53:17 PM UTC+4:30, Jeremy Ruston wrote:
>
> Hi Mohammad
>
> Apologies, I’d missed a bit off the content of the new wrapper template. 
> Try this:
>
> <$view tiddler="$:/mytemplate" mode="htmlwikified" mode="inline”/>
>

This seems to be corrected as below

<$view tiddler="$:/mytemplate" format="htmlwikified" mode="inline”/>

 

>
> Where “$:/mytemplate” is the title of the template you were using before 
> (ie the title of the template we’re wrapping).
>
> Best wishes
>
> Jeremy.
>
>
The standard template which I uses a modified one seems have backticks. 
Following is the standard template for rendering tiddlers with very little 
modification

\define tv-wikilink-template() $uri_doubleencoded$.html
\define tv-config-toolbar-icons() no
\define tv-config-toolbar-text() no
\define tv-config-toolbar-class() tc-btn-invisible
\import [[$:/core/ui/PageMacros]] 
[all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]
`













`<$view field="caption"><$view field="title"/>: 
{{$:/core/wiki/title}}`


`

{{$:/kookma/static-header||$:/core/templates/html-tiddler}}

`
`
<$view tiddler="$:/kookma/template/static-view-template" 
format="htmlwikified"/>
`

`
{{$:/kookma/aside-left||$:/core/templates/html-tiddler}}
`
`
{{$:/kookma/aside-right||$:/core/templates/html-tiddler}}
`
`
{{$:/kookma/static-footer||$:/core/templates/html-tiddler}}
`

`

 
When I use the wrapper template in my case "$:/kookma/mytemplate-wrapper" 
with below content as your advise

<$view tiddler="$:/kookma/templates/static.tiddler.html" 
mode="htmlwikified" mode="inline”/>

I see something like this in Wiki 

!doctype html html head meta 
http-equiv=Content-Type 
content=text/html;charset=utf-8 / meta 
name=generator content=TiddlyWiki / meta 
name=tiddlywiki-version content=5.1.22 
/ meta name=viewport content=width=device-width, 
initial-scale=1.0 / meta 
name=apple-mobile-web-app-capable content=yes / 
meta name=apple-mobile-web-app-status-bar-style 
content=black-translucent / meta 
name=mobile-web-app-capable content=yes/ 
meta name=format-detection 
content=telephone=no link id=faviconLink 
rel=shortcut icon href=favicon.ico link 
href='https://fonts.googleapis.com/css?family=Open+Sans:400,700,700italic,400italic'
 
rel='stylesheet' type='text/css' link rel=stylesheet 
href=static.css 
title$:/kookma/mytemplate-wrapper: Generate Static Website — 
a tutorial for generate websits using Tiddlywiki/title 
/head body class=hg header 
class=hg-header pGenerate Static 
Website/p /header main 
class=hg-main pdiv 
class=tc-tiddler-frame tc-tiddler-view-frame tc-tiddler-exists 
tc-tiddler-system  data-tags= 
data-tiddler-title=$:/kookma/mytemplate-wrapperdiv 
class= tc-reveal hidden=true/div 
span class=tc-errorRecursive transclusion error in 
transclude widget/span /div /p /main 
aside class=hg-left  
pstrongContents/strong/ppul 
class=/ul/p /aside aside 
class=hg-right pAds/p 
/aside footer class=hg-footer 
pThis is a footer/p /footer /body 
/html


And when I build the static pages using

tiddlywiki --build jeremy

with jeremy in my tiddlywiki.info as below

"jeremy":[
"--rendertiddlers", "[!is[system]tag[public]]", 
"$:/kookma/mytemplate-wrapper", "static", "text/plain",
"--rendertiddler", "$:/kookma/templates/static.template.css", 
"static/static.css", "text/plain" 
] 

I get the wrong results as below: for example this is tutorial tiddler 
rendered as tutorial.html

  
 
  
 
Tutorials: Generate Static Website — a tutorial for generate websits 
using TiddlywikiGenerate Static Website
Part iURLs - 
the strings of letters and symbols that we occasionally type into the 
address bar but much more frequently click on, aren't allowed to have 
spaces in them..This
 
is a figure Up until now, we have been creating tiddlers, and having 
them turned into pages with matching URLs without worrying about whether 
the titles had spaces in them. How come?There's actually been a 
little bit of magic going on all along, which is that tiddlywiki is turning 
the links to all our pages, along with the filenames that those pages are 
getting saved with, into 'safe' URLs by swapping all the spaces for the 
character sequence %20. This is called URL encoding.Part 
iiThis is part two. It contains the below text. Mark TwainThey did not know it was 
impossible so they did it. 
 Contents   Ads  
 This is a footer   



--Mohammad

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/cfa8d7d8-7d41-4cd6-a385-389fcb9eb910%40googlegroups.com.


Re: [tw5] Tutorial: How to use TiddlyWiki as a static website generator

2020-05-01 Thread Jeremy Ruston
Hi Mohammad

Apologies, I’d missed a bit off the content of the new wrapper template. Try 
this:

<$view tiddler="$:/mytemplate" mode="htmlwikified" mode="inline”/>

Where “$:/mytemplate” is the title of the template you were using before (ie 
the title of the template we’re wrapping).

Best wishes

Jeremy.

> On 1 May 2020, at 10:19, Mohammad  wrote:
> 
> Hi Jeremy,
> 
> No luck to remove the extra  nor the new template created correct html 
> page (rendered tiddler --> page.html)
> 
>  As you advised I used the below command in my tiddlywiki.info to build the 
> static pages and see the effects of new template: $:/kookma/mytemplate-wrapper
> 
>   "jeremy":[
>   "--rendertiddlers", "[!is[system]tag[public]]", 
> "$:/kookma/templates/static.tiddler.html", "static", "text/plain",
>   "--rendertiddlers", "[!is[system]tag[public]]", 
> "$:/kookma/mytemplate-wrapper", "static", "text/plain",
>   "--rendertiddler", 
> "$:/kookma/templates/static.template.css", "static/static.css", "text/plain" 
>   ]
> 
> Then in a terminal window I issued the below command
> 
> tiddlywiki --build jeremy
> 
> I got the output folder with all tiddlers tagged with public BUT the pages 
> are raw texts
> 
> For example Home tiddler rendered into home.html with below content
> 
> !! Home This is a playground to make static website. !! Links This is an 
> [[Index]]. I also see `a code` here.
> 
> As you see nothing rendered!
> 
> 
> More info:
> My templates are copy of official templates so 
> $:/kookma/templates/static.tiddler.html is a copy of 
> $:/core/templates/static.tiddler.html
> I have only used a modified $:/core/ui/ViewTemplate called 
> "$:/kookma/ui/ViewTemplate " to remove the tags wrapper from displaying. So 
> this was reflected in "$:/core/templates/static.tiddler.html"as below
> 
> `{{$:/StaticBanner||$:/core/templates/html-tiddler}}`
> 
> `<$view tiddler="$:/kookma/ui/ViewTemplate" format="htmlwikified"/>`
> 
> 
> 
> 
> Mohammad
> 
> 
> 
> 
> -- 
> 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 tiddlywiki+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/42d7919d-014f-408d-b853-fa5d65c50acd%40googlegroups.com
>  
> .

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5153AB93-29E0-45D3-A85F-018C2791AFC7%40gmail.com.


Re: [tw5] Tutorial: How to use TiddlyWiki as a static website generator

2020-05-01 Thread Mohammad
Hi Jeremy,

No luck to remove the extra  nor the new template created correct html 
page (rendered tiddler --> page.html)

 As you advised I used the below command in my *tiddlywiki.info* to build 
the static pages and see the effects of new template: 
$:/kookma/mytemplate-wrapper

"jeremy":[
"--rendertiddlers", "[!is[system]tag[public]]", 
"$:/kookma/templates/static.tiddler.html", "static", "text/plain",
"--rendertiddlers", "[!is[system]tag[public]]", 
"$:/kookma/mytemplate-wrapper", "static", "text/plain",
"--rendertiddler", "$:/kookma/templates/static.template.css", 
"static/static.css", "text/plain" 
]

Then in a terminal window I issued the below command

tiddlywiki --build jeremy

I got the output folder with all tiddlers tagged with public BUT the pages 
are raw texts

For example Home tiddler rendered into home.html with below content

!! Home This is a playground to make static website. !! Links This is an 
[[Index]]. I also see `a code` here.

As you see nothing rendered!


More info:

   1. My templates are copy of official templates 
   so $:/kookma/templates/static.tiddler.html is a copy 
   of $:/core/templates/static.tiddler.html
   2. I have only used a modified $:/core/ui/ViewTemplate called 
   "$:/kookma/ui/ViewTemplate " to remove the tags wrapper from displaying. So 
   this was reflected in "$:/core/templates/static.tiddler.html"as below


`{{$:/StaticBanner||$:/core/templates/html-tiddler}}`

`<$view tiddler="$:/kookma/ui/ViewTemplate" format="htmlwikified"/>`




Mohammad



-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/42d7919d-014f-408d-b853-fa5d65c50acd%40googlegroups.com.


Re: [tw5] Tutorial: How to use TiddlyWiki as a static website generator

2020-05-01 Thread Mohammad Rahmani
Thanks Jeremy!

I try this and return to you!

By the way I am working on generating static pages using Tiddlywiki and I
had some good progress.
I will then prepare a tutorial with some lessons to be reproducible simply
by interested learners!
To this end I see the process is quit easy as far as stick to official
tools and get a little tricky when
you want to use your own page template, css, tags, ...

BUT I should say Tiddlywiki is quite powerful and procedure can be
simplify alot to be used even by beginners!

Best
Mohammad






Best wishes
Mohammad


On Fri, May 1, 2020 at 12:40 PM Jeremy Ruston 
wrote:

> Hi Mohammad
>
> On 1 May 2020, at 09:03, Mohammad  wrote:
>
> I confused how to use this new template! Should I use it in
> tiddlywiki.info like below
>
>
>> "--rendertiddlers","[!is[system]]","$:/mytemplate-wrapper","static","text/plain",
>>
>> "
>
> Or in the $:/core/templates/static.tiddler.html
>
>
> Yes, that’s what I meant: to use the new wrapper template in your
> rendering commands, and to render to text/plain format.
>
> Best wishes
>
> Jeremy
>
> --
> 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 tiddlywiki+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/3288B598-4A33-4880-A378-A1555D1B51C6%40gmail.com
> 
> .
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMD-7KmSEoPT5WwWHu0hje81497quAkaNftVR8JxVsJZrA%40mail.gmail.com.


Re: [tw5] Tutorial: How to use TiddlyWiki as a static website generator

2020-05-01 Thread Jeremy Ruston
Hi Mohammad

> On 1 May 2020, at 09:03, Mohammad  wrote:
> 
> I confused how to use this new template! Should I use it in tiddlywiki.info 
>  like below
>> "--rendertiddlers","[!is[system]]","$:/mytemplate-wrapper","static","text/plain",
> 
> "
>  
> Or in the $:/core/templates/static.tiddler.html

Yes, that’s what I meant: to use the new wrapper template in your rendering 
commands, and to render to text/plain format.

Best wishes

Jeremy

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3288B598-4A33-4880-A378-A1555D1B51C6%40gmail.com.


Re: [tw5] Tutorial: How to use TiddlyWiki as a static website generator

2020-05-01 Thread Mohammad


On Thursday, April 30, 2020 at 8:49:32 PM UTC+4:30, Jeremy Ruston wrote:
>
> Hi Mohammad
>
>
>1. In https://tiddlywiki.com/#RenderTiddlerCommand it states that "The 
>--rendertiddler command is deprecated in favor of the new, more 
>flexible --render command". this is true for "--rendertiddlers", but 
>when one create a new wiki using "tiddlywiki mywiki --init server" 
>even in TW-5.1.22 you get your *tiddlywiki.info 
>* uses old commands. What do you recommend 
>here?
>
> We should update the examples here. There’s nothing wrong with 
> rendertiddlers beyond that it isn’t as flexible.
>
>
>1. Is it possible to use "--render" and use "filename-filter" to 
>remove *space *and *odd characters (e.g. / [ " % $) *from tiddler name 
>and store in a specific folder for example ./blog, ./asset, ...
>
> The filename filter parameter is used to transform the tiddler title into 
> a filename, and so you could indeed use a regexp to remove those 
> characters. I think you’re probably after the “slugify” operator discussed 
> here: 
> https://github.com/Jermolene/TiddlyWiki5/issues/3379#issuecomment-411401582
>
>
>1. *Most problematic one*: Is there any way to use --render and 
>prevent the extra ** tag generation? I use a *grid layout* for 
>static website generated by TW-5.1.22 and these  tags make to destroy 
>the grid layout.
>
> I assume your render command is outputting to text/html format? If so, and 
> your current template is $:/mytemplate, try adding a new template called 
> $:/mytemplate-wrapper containing the content below:
>
> <$view mode="htmlwikified" mode="inline"/>
>
> And then render the new $:/mytemplate-wrapper template with the output 
> type set to text/plain.
>

I confused how to use this new template! Should I use it in tiddlywiki.info 
like below

"--rendertiddlers","[!is[system]]","$:/mytemplate-wrapper","static","text/plain",
>
> "
 
Or in the $:/core/templates/static.tiddler.html

--Mohammad


> Best wishes
>
> Jeremy.
>
> Many thanks for your help
> --Mohammad
>
>
>> The “build” command lets you store named sequences of commands and invoke 
>> them with a single command, making it easier to type common commands.
>>
>> The build targets are defined in the tiddlywiki.info in the root of the 
>> wiki folder like this:
>>
>> {
>> "description": "Empty edition",
>> "plugins": [
>> ],
>> "themes": [
>> "tiddlywiki/vanilla",
>> "tiddlywiki/snowwhite"
>> ],
>> "build": {
>> "index": [
>> "--rendertiddler","$:/core/save/all","index.html","text/plain"],
>> "empty": [
>> "--rendertiddler","$:/core/save/all","empty.html","text/plain",
>> "--rendertiddler","$:/core/save/all","empty.hta","text/plain"],
>> "externalimages": [
>> "--savetiddlers","[is[image]]","images",
>>
>> "--setfield","[is[image]]","_canonical_uri","$:/core/templates/canonical-uri-external-image","text/plain",
>> "--setfield","[is[image]]","text","","text/plain",
>> "--rendertiddler","$:/core/save/all","externalimages.html","text/plain"],
>> "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"]
>> }
>> }
>>
>>
>> Those commands could be performed like this:
>>
>> tiddlywiki mywiki --build index empty static
>>
>> Best wishes
>>
>> Jeremy
>>
>>
> -- 
> 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 tiddl...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/b976dbe2-235f-45c2-9ea3-07f3ca2c47fa%40googlegroups.com
>  
> 
> .
>
>
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7c09154e-34dc-4483-bd77-8e71974e48bf%40googlegroups.com.


Re: [tw5] Tutorial: How to use TiddlyWiki as a static website generator

2020-04-30 Thread Mohammad
Hi Jeremy
 Many thanks for calcification! I will go through your advises and make 
some experiments and will share the results here!
 I will also sub,it a ticked for updating the official tiddlywiki.info 
files!

Best wishes
-- Mohammad


On Thursday, April 30, 2020 at 8:49:32 PM UTC+4:30, Jeremy Ruston wrote:
>
> Hi Mohammad
>
>
>1. In https://tiddlywiki.com/#RenderTiddlerCommand it states that "The 
>--rendertiddler command is deprecated in favor of the new, more 
>flexible --render command". this is true for "--rendertiddlers", but 
>when one create a new wiki using "tiddlywiki mywiki --init server" 
>even in TW-5.1.22 you get your *tiddlywiki.info 
>* uses old commands. What do you recommend 
>here?
>
> We should update the examples here. There’s nothing wrong with 
> rendertiddlers beyond that it isn’t as flexible.
>
>
>1. Is it possible to use "--render" and use "filename-filter" to 
>remove *space *and *odd characters (e.g. / [ " % $) *from tiddler name 
>and store in a specific folder for example ./blog, ./asset, ...
>
> The filename filter parameter is used to transform the tiddler title into 
> a filename, and so you could indeed use a regexp to remove those 
> characters. I think you’re probably after the “slugify” operator discussed 
> here: 
> https://github.com/Jermolene/TiddlyWiki5/issues/3379#issuecomment-411401582
>
>
>1. *Most problematic one*: Is there any way to use --render and 
>prevent the extra ** tag generation? I use a *grid layout* for 
>static website generated by TW-5.1.22 and these  tags make to destroy 
>the grid layout.
>
> I assume your render command is outputting to text/html format? If so, and 
> your current template is $:/mytemplate, try adding a new template called 
> $:/mytemplate-wrapper containing the content below:
>
> <$view mode="htmlwikified" mode="inline"/>
>

I use the standard tiddlywiki.info generated by "tiddlywiki mywiki --init 
server" but I have overwritten the core template (I will use my own later)
I have copy pasted the static part from my tiddlywiki.info

  "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"
]
}



  

 

 

>
> And then render the new $:/mytemplate-wrapper template with the output 
> type set to text/plain.
>
> Best wishes
>
> Jeremy.
>
> Many thanks for your help
> --Mohammad
>
>
>> The “build” command lets you store named sequences of commands and invoke 
>> them with a single command, making it easier to type common commands.
>>
>> The build targets are defined in the tiddlywiki.info in the root of the 
>> wiki folder like this:
>>
>> {
>> "description": "Empty edition",
>> "plugins": [
>> ],
>> "themes": [
>> "tiddlywiki/vanilla",
>> "tiddlywiki/snowwhite"
>> ],
>> "build": {
>> "index": [
>> "--rendertiddler","$:/core/save/all","index.html","text/plain"],
>> "empty": [
>> "--rendertiddler","$:/core/save/all","empty.html","text/plain",
>> "--rendertiddler","$:/core/save/all","empty.hta","text/plain"],
>> "externalimages": [
>> "--savetiddlers","[is[image]]","images",
>>
>> "--setfield","[is[image]]","_canonical_uri","$:/core/templates/canonical-uri-external-image","text/plain",
>> "--setfield","[is[image]]","text","","text/plain",
>> "--rendertiddler","$:/core/save/all","externalimages.html","text/plain"],
>> "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"]
>> }
>> }
>>
>>
>> Those commands could be performed like this:
>>
>> tiddlywiki mywiki --build index empty static
>>
>> Best wishes
>>
>> Jeremy
>>
>>
> -- 
> 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 tiddl...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/b976dbe2-235f-45c2-9ea3-07f3ca2c47fa%40googlegroups.com
>  
> 
> .
>
>
>

-- 
You received this 

Re: [tw5] Tutorial: How to use TiddlyWiki as a static website generator

2020-04-30 Thread Jeremy Ruston
Hi Mohammad
> In https://tiddlywiki.com/#RenderTiddlerCommand it states that "The 
> --rendertiddler command is deprecated in favor of the new, more flexible 
> --render command". this is true for "--rendertiddlers", but when one create a 
> new wiki using "tiddlywiki mywiki --init server" even in TW-5.1.22 you get 
> your tiddlywiki.info uses old commands. What do you recommend here?
We should update the examples here. There’s nothing wrong with rendertiddlers 
beyond that it isn’t as flexible.

> Is it possible to use "--render" and use "filename-filter" to remove space 
> and odd characters (e.g. / [ " % $) from tiddler name and store in a specific 
> folder for example ./blog, ./asset, ...
The filename filter parameter is used to transform the tiddler title into a 
filename, and so you could indeed use a regexp to remove those characters. I 
think you’re probably after the “slugify” operator discussed here: 
https://github.com/Jermolene/TiddlyWiki5/issues/3379#issuecomment-411401582

> Most problematic one: Is there any way to use --render and prevent the extra 
>  tag generation? I use a grid layout for static website generated by 
> TW-5.1.22 and these  tags make to destroy the grid layout.
I assume your render command is outputting to text/html format? If so, and your 
current template is $:/mytemplate, try adding a new template called 
$:/mytemplate-wrapper containing the content below:

<$view mode="htmlwikified" mode="inline"/>

And then render the new $:/mytemplate-wrapper template with the output type set 
to text/plain.

Best wishes

Jeremy.

> Many thanks for your help
> --Mohammad
> 
> 
> The “build” command lets you store named sequences of commands and invoke 
> them with a single command, making it easier to type common commands.
> 
> The build targets are defined in the tiddlywiki.info 
>  in the root of the wiki folder like this:
> 
> {
>   "description": "Empty edition",
>   "plugins": [
>   ],
>   "themes": [
>   "tiddlywiki/vanilla",
>   "tiddlywiki/snowwhite"
>   ],
>   "build": {
>   "index": [
>   
> "--rendertiddler","$:/core/save/all","index.html","text/plain"],
>   "empty": [
>   
> "--rendertiddler","$:/core/save/all","empty.html","text/plain",
>   
> "--rendertiddler","$:/core/save/all","empty.hta","text/plain"],
>   "externalimages": [
>   "--savetiddlers","[is[image]]","images",
>   
> "--setfield","[is[image]]","_canonical_uri","$:/core/templates/canonical-uri-external-image","text/plain",
>   "--setfield","[is[image]]","text","","text/plain",
>   
> "--rendertiddler","$:/core/save/all","externalimages.html","text/plain"],
>   "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"]
>   }
> }
> 
> Those commands could be performed like this:
> 
> tiddlywiki mywiki --build index empty static
> 
> Best wishes
> 
> Jeremy
> 
> 
> -- 
> 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 tiddlywiki+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/b976dbe2-235f-45c2-9ea3-07f3ca2c47fa%40googlegroups.com
>  
> .

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4848287B-C98F-4B49-8213-6FB70228A7C5%40gmail.com.


Re: [tw5] Tutorial: How to use TiddlyWiki as a static website generator

2020-04-30 Thread Mohammad
Hi Jeremy,
 The build command is quite powerful! I appreciate to advice on below 
questions


   1. In https://tiddlywiki.com/#RenderTiddlerCommand it states that "The 
   --rendertiddler command is deprecated in favor of the new, more flexible 
   --render command". this is true for "--rendertiddlers", but when one 
   create a new wiki using "tiddlywiki mywiki --init server" even in 
   TW-5.1.22 you get your *tiddlywiki.info* uses old commands. What do you 
   recommend here?
   2. Is it possible to use "--render" and use "filename-filter" to remove 
*space 
   *and *odd characters (e.g. / [ " % $) *from tiddler name and store in a 
   specific folder for example ./blog, ./asset, ...
   3. *Most problematic one*: Is there any way to use --render and prevent 
   the extra ** tag generation? I use a *grid layout* for static website 
   generated by TW-5.1.22 and these  tags make to destroy the grid layout.

Many thanks for your help
--Mohammad


> The “build” command lets you store named sequences of commands and invoke 
> them with a single command, making it easier to type common commands.
>
> The build targets are defined in the tiddlywiki.info in the root of the 
> wiki folder like this:
>
> {
> "description": "Empty edition",
> "plugins": [
> ],
> "themes": [
> "tiddlywiki/vanilla",
> "tiddlywiki/snowwhite"
> ],
> "build": {
> "index": [
> "--rendertiddler","$:/core/save/all","index.html","text/plain"],
> "empty": [
> "--rendertiddler","$:/core/save/all","empty.html","text/plain",
> "--rendertiddler","$:/core/save/all","empty.hta","text/plain"],
> "externalimages": [
> "--savetiddlers","[is[image]]","images",
>
> "--setfield","[is[image]]","_canonical_uri","$:/core/templates/canonical-uri-external-image","text/plain",
> "--setfield","[is[image]]","text","","text/plain",
> "--rendertiddler","$:/core/save/all","externalimages.html","text/plain"],
> "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"]
> }
> }
>
>
> Those commands could be performed like this:
>
> tiddlywiki mywiki --build index empty static
>
> Best wishes
>
> Jeremy
>
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b976dbe2-235f-45c2-9ea3-07f3ca2c47fa%40googlegroups.com.


Re: [tw5] Tutorial: How to use TiddlyWiki as a static website generator

2020-04-30 Thread Jeremy Ruston
Hi Anne-Laure

> Curious what these much complex steps 
> 
>  in the official documentation bring to the table?

The “build” command lets you store named sequences of commands and invoke them 
with a single command, making it easier to type common commands.

The build targets are defined in the tiddlywiki.info  
in the root of the wiki folder like this:

{
"description": "Empty edition",
"plugins": [
],
"themes": [
"tiddlywiki/vanilla",
"tiddlywiki/snowwhite"
],
"build": {
"index": [

"--rendertiddler","$:/core/save/all","index.html","text/plain"],
"empty": [

"--rendertiddler","$:/core/save/all","empty.html","text/plain",

"--rendertiddler","$:/core/save/all","empty.hta","text/plain"],
"externalimages": [
"--savetiddlers","[is[image]]","images",

"--setfield","[is[image]]","_canonical_uri","$:/core/templates/canonical-uri-external-image","text/plain",
"--setfield","[is[image]]","text","","text/plain",

"--rendertiddler","$:/core/save/all","externalimages.html","text/plain"],
"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"]
}
}

Those commands could be performed like this:

tiddlywiki mywiki --build index empty static

Best wishes

Jeremy

> 
> On Saturday, April 25, 2020 at 4:46:30 PM UTC+1, Mohammad wrote:
> Hi Anne-Laure
> If you run the code from root folder of wiki, just type as below
> 
> tiddlywiki --build static
> 
> 
> --Mohammad
> 
> 
> On Saturday, April 25, 2020 at 7:58:13 PM UTC+4:30, Anne-Laure Le Cunff wrote:
> Hi Mohammad,
> 
> Thank you! I just tried it and get the attached error, am I doing something 
> wrong?
> 
> Am I correct to do this in the root folder of the wiki?
> 
> Thank you!
> 
> On Saturday, April 25, 2020 at 3:53:35 PM UTC+1, Mohammad wrote:
> Hi Anne-Laure,
>  
> On Wednesday, April 22, 2020 at 7:23:38 AM UTC+4:30, Anne-Laure Le Cunff 
> wrote:
> Hi everyone — here  
> is a short tutorial to use TiddlyWiki as a static website generator. Would 
> love any feedback or suggestions. Thank you!
> 
> I just read the whole tutorial! one comment:
> 
> In 2. Export your TiddlyWiki as a static website
> 
> You have asked to copy paste some commands in terminal and run one by one or 
> create a setup.sh to make the static website BUT
> 
> When you create your wiki using 
> 
> tiddlywiki myfirstwiki --init server
> 
> 
> Tiddlywiki creates a tiddlywiki.info  in myfirstwik 
> folder, you can use it like below
> 
> tiddlywiki myfirstwiki --build static
> 
> 
> and it does all the magic and no need for those headaches! specially if this 
> targets beginners.
> 
> Cheers
> Mohammad
> 
> -- 
> 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 tiddlywiki+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/f6415eef-fb87-4c09-a2a6-72a706a2cdff%40googlegroups.com
>  
> .

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/85478A01-0CCD-4A1C-8EA0-CCDCB6038AD8%40gmail.com.


Re: [tw5] Tutorial: How to use TiddlyWiki as a static website generator

2020-04-22 Thread Ste Wilson
Sycom did do an Analytics plugin but it currently causes a red screen of 
emabarsment as if a few updates ago. 

https://sycom.github.io/TiddlyWiki-Plugins/

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a8df3474-9926-4f24-9320-e50b19f3f3c8%40googlegroups.com.


Re: [tw5] Tutorial: How to use TiddlyWiki as a static website generator

2020-04-22 Thread Anne-Laure Le Cunff
Yes that would be fun — but not great for SEO purposes, which is a big 
advantage of static websites vs native TiddlyWiki :) To make your content 
easily indexable by search engines you need one page = one piece of 
content, with its own title, body, and unique metadata. Also, if your wiki 
is text only, the number of pages doesn't really matter on most free 
hosting services like GitHub pages or Netlify.

On Wednesday, April 22, 2020 at 11:12:15 AM UTC+1, Mat wrote:
>
> Anne-Laure Le Cunff wrote:
>>
>> For a static website, I think it's better to have one page = one tiddler, 
>> but good to know there's also this quick option!
>>
>
> Apropos
>
> ...I did some experimenting a while back, having multiple tiddlers in a 
> static page but using css tricks to only show specific tiddlers per user 
> clicks. IMO this is worth exploring further since it is simpler to serve a 
> single file than many, e.g on various free hosting servers.
>
> <:-)
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/fd4a55a0-cd42-4ce0-9dfa-6f634e386369%40googlegroups.com.


Re: [tw5] Tutorial: How to use TiddlyWiki as a static website generator

2020-04-22 Thread Mat
Anne-Laure Le Cunff wrote:
>
> For a static website, I think it's better to have one page = one tiddler, 
> but good to know there's also this quick option!
>

Apropos

...I did some experimenting a while back, having multiple tiddlers in a 
static page but using css tricks to only show specific tiddlers per user 
clicks. IMO this is worth exploring further since it is simpler to serve a 
single file than many, e.g on various free hosting servers.

<:-)

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0b8dc323-f52a-4a86-9c6a-f824374da9cc%40googlegroups.com.


Re: [tw5] Tutorial: How to use TiddlyWiki as a static website generator

2020-04-22 Thread Mat
Anne-Laure Le Cunff wrote:
>
> Thank you! So it does perform something different from what I'm doing in 
> the tutorial—everything as one page rather than all existing tiddlers as 
> separate (but interlinked) pages.
>

Ah, that's an interesting distinction. You might want to propose this as an 
export option or try to implement it yourself. It should not be overly 
difficult... a button containing a listwidget with the filter that executes 
the export for each item...

<:-)

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f1a9254e-01fa-4114-9e19-5db483cf6da2%40googlegroups.com.


Re: [tw5] Tutorial: How to use TiddlyWiki as a static website generator

2020-04-22 Thread Anne-Laure Le Cunff
Thank you! So it does perform something different from what I'm doing in 
the tutorial—everything as one page rather than all existing tiddlers as 
separate (but interlinked) pages. For a static website, I think it's better 
to have one page = one tiddler, but good to know there's also this quick 
option!

On Wednesday, April 22, 2020 at 10:50:38 AM UTC+1, Mat wrote:
>
> 2. Am I right this would export one file called tiddlers.html with 
>>> everything that's filtered in it, rather than multiple pages with one html 
>>> page = 1 tiddler?
>>>
>>
>> Yes.
>>
>
> To clarify: it filters all open tiddlers. But you can make any filter e.g 
> "[tag[foo]]" or where a date is "greaterthan" some cutoff or whatever - and 
> have all those exported as one page.
>
> <:-)
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/50fa6404-c646-4b44-84fc-4716e49f4774%40googlegroups.com.


Re: [tw5] Tutorial: How to use TiddlyWiki as a static website generator

2020-04-22 Thread Mat

>
> 2. Am I right this would export one file called tiddlers.html with 
>> everything that's filtered in it, rather than multiple pages with one html 
>> page = 1 tiddler?
>>
>
> Yes.
>

To clarify: it filters all open tiddlers. But you can make any filter e.g 
"[tag[foo]]" or where a date is "greaterthan" some cutoff or whatever - and 
have all those exported as one page.

<:-)

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e4f74f11-8017-45ea-8d87-838819d7ad8f%40googlegroups.com.


Re: [tw5] Tutorial: How to use TiddlyWiki as a static website generator

2020-04-22 Thread Mat
Anne-Laure Le Cunff wrote:

First, I just realized this is a better filter - the previous one removed 
the first tiddler which isn't always the Search tiddler, so this one 
specifically only removes that one:

[list[$:/StoryList]] -$:/AdvancedSearch

 
>
> 1. Still not working, it's only displaying one random Tiddler (see 
> attached)
>

It is supposed to display all tiddlers that you currently have open. Is 
this not the case?

 

> 2. Am I right this would export one file called tiddlers.html with 
> everything that's filtered in it, rather than multiple pages with one html 
> page = 1 tiddler?
>

Yes.

<:-)

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9d60add8-369b-486b-ad05-8984b63e917f%40googlegroups.com.


Re: [tw5] Tutorial: How to use TiddlyWiki as a static website generator

2020-04-22 Thread Birthe C
Now that your screenshot show Tiddlyblink I wonder. The serch will only 
find, what is open in the story.


onsdag den 22. april 2020 kl. 11.35.47 UTC+2 skrev Anne-Laure Le Cunff:
>
> Oops! :)
>
> 1. Still not working, it's only displaying one random Tiddler (see 
> attached)
> 2. Am I right this would export one file called tiddlers.html with 
> everything that's filtered in it, rather than multiple pages with one html 
> page = 1 tiddler?
>
> Thank you!
>
> On Wednesday, April 22, 2020 at 10:29:50 AM UTC+1, Mat wrote:
>>
>> Anne-Laure Le Cunff wrote:
>>>
>>> @Mat, I tried the Advanced Search technique (thank you!) but it didn't 
>>> work for me, see screenshot attached. If it works, that's a much easier way 
>>> to go about it!
>>>
>>
>> You need to be on the "Filter" tab. You're on the "System" tab, which 
>> only filters among system tiddlers (i.e tiddlers prefixed $:/)
>>
>> <:-)
>>
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ea930183-9c5f-4ad8-a4a2-e020c407cd21%40googlegroups.com.


Re: [tw5] Tutorial: How to use TiddlyWiki as a static website generator

2020-04-22 Thread Anne-Laure Le Cunff
Oops! :)

1. Still not working, it's only displaying one random Tiddler (see attached)
2. Am I right this would export one file called tiddlers.html with 
everything that's filtered in it, rather than multiple pages with one html 
page = 1 tiddler?

Thank you!

On Wednesday, April 22, 2020 at 10:29:50 AM UTC+1, Mat wrote:
>
> Anne-Laure Le Cunff wrote:
>>
>> @Mat, I tried the Advanced Search technique (thank you!) but it didn't 
>> work for me, see screenshot attached. If it works, that's a much easier way 
>> to go about it!
>>
>
> You need to be on the "Filter" tab. You're on the "System" tab, which only 
> filters among system tiddlers (i.e tiddlers prefixed $:/)
>
> <:-)
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/96cf3ad8-51cb-4c8f-abfd-a10cf479e4cf%40googlegroups.com.


Re: [tw5] Tutorial: How to use TiddlyWiki as a static website generator

2020-04-22 Thread Mat
Anne-Laure Le Cunff wrote:
>
> @Mat, I tried the Advanced Search technique (thank you!) but it didn't 
> work for me, see screenshot attached. If it works, that's a much easier way 
> to go about it!
>

You need to be on the "Filter" tab. You're on the "System" tab, which only 
filters among system tiddlers (i.e tiddlers prefixed $:/)

<:-)

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f7d04903-507d-4d0f-9dec-fffe92bf8e02%40googlegroups.com.


Re: [tw5] Tutorial: How to use TiddlyWiki as a static website generator

2020-04-22 Thread Anne-Laure Le Cunff
Thanks so much, everyone!

   - Typos: fixed (hopefully)
   - Link to VS Code: fixed
   - Why a static website: added
   - Example of static website: added

@Mat, I tried the Advanced Search technique (thank you!) but it didn't work 
for me, see screenshot attached. If it works, that's a much easier way to 
go about it!

On Wednesday, April 22, 2020 at 8:17:01 AM UTC+1, Xavier wrote:
>
> Hi Anne-Laure,
>
> I liked this tutorial very much, in good part because you addressed a 
> concern that I shared with Eric Shulman: the risk of oversimplifying the 
> documentation of a tool that is complex because it allows to create complex 
> documents. Your step-by-step approach to reach a clear, if ambitious, goal, 
> is very convincing. 
>
> One point deserves to be clarified, though: why would one want to generate 
> static pages in the first place? The main reason to me is to help indexing 
> by search engines, but maybe there are more (the "read-only" effect is 
> arguable by the way: unless a user is explicitly allowed to save, changes 
> by visitors always happen on a copy of the source TiddlyWiki).
>
> Santé !
> -- Xavier Cazin
>
>
> On Wed, Apr 22, 2020 at 4:53 AM Anne-Laure Le Cunff  > wrote:
>
>> Hi everyone — here 
>>  is a short 
>> tutorial to use TiddlyWiki as a static website generator. Would love any 
>> feedback or suggestions. Thank you!
>>
>> -- 
>> 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 tiddl...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/c74d251c-0e22-4ff0-9c04-c9183825d57e%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3b359405-7562-4690-9f18-248e01e2dba9%40googlegroups.com.


Re: [tw5] Tutorial: How to use TiddlyWiki as a static website generator

2020-04-22 Thread Xavier Cazin
Hi Anne-Laure,

I liked this tutorial very much, in good part because you addressed a
concern that I shared with Eric Shulman: the risk of oversimplifying the
documentation of a tool that is complex because it allows to create complex
documents. Your step-by-step approach to reach a clear, if ambitious, goal,
is very convincing.

One point deserves to be clarified, though: why would one want to generate
static pages in the first place? The main reason to me is to help indexing
by search engines, but maybe there are more (the "read-only" effect is
arguable by the way: unless a user is explicitly allowed to save, changes
by visitors always happen on a copy of the source TiddlyWiki).

Santé !
-- Xavier Cazin


On Wed, Apr 22, 2020 at 4:53 AM Anne-Laure Le Cunff 
wrote:

> Hi everyone — here
>  is a short
> tutorial to use TiddlyWiki as a static website generator. Would love any
> feedback or suggestions. Thank you!
>
> --
> 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 tiddlywiki+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/c74d251c-0e22-4ff0-9c04-c9183825d57e%40googlegroups.com
> 
> .
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CADeSwYNKt_GYUHPpnsMFVW57e-dBfEeDRf6rQ9Dcsm11M-m-Gg%40mail.gmail.com.


Re: [tw5] Tutorial: How to use TiddlyWiki as a static website generator

2020-04-21 Thread 'Peter Buyze' via TiddlyWiki
Anne-Laure,

1st impression.Looks good, and you have the ability to simplify the complex, as 
Riya Pabari wrote :-)
You gave me an idea.
There are a few spelling mistakes. Also, the VS Code link links to Hyper.



22 Apr 2020, 05:53 by alecu...@gmail.com:

> Hi everyone — > here 
> >  is a short 
> tutorial to use TiddlyWiki as a static website generator. Would love any 
> feedback or suggestions. Thank you!
>
>
>
> --
>  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 > tiddlywiki+unsubscr...@googlegroups.com> .
>  To view this discussion on the web visit > 
> https://groups.google.com/d/msgid/tiddlywiki/c74d251c-0e22-4ff0-9c04-c9183825d57e%40googlegroups.com
>  
> >
>  .
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/M5VFBEU--3-2%40tutamail.com.


[tw5] Tutorial: How to use TiddlyWiki as a static website generator

2020-04-21 Thread Anne-Laure Le Cunff
Hi everyone — here 
 is a short 
tutorial to use TiddlyWiki as a static website generator. Would love any 
feedback or suggestions. Thank you!

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c74d251c-0e22-4ff0-9c04-c9183825d57e%40googlegroups.com.