[tw5] Re: Building static sites in the browser

2020-05-14 Thread Edgaras
That's pretty easy actually and I am doing that already. I tag notes that I wish to be exported with "published" tag. And then change export button script, this part: "<$list filter="[tag[published]!is[system]]">" -- You received this message because you are subscribed to the Google Groups

[tw5] Re: Building static sites in the browser

2020-05-14 Thread C. Wess Daniels
That sounds like it would be really useful. I'd like the functionality of excluding certain tags from an export. I'm sure it's possible but I'm not sure where/or what to enter. Any thoughts on that? On Thursday, May 14, 2020 at 8:00:46 AM UTC-4, Edgaras wrote: > > I am glad it helped ;) I

[tw5] Re: Building static sites in the browser

2020-05-14 Thread Edgaras
I am glad it helped ;) I removed the limit[25] part completely. I still have an idea to build a custom Export button, where only recently edited tiddlers are exported, so I don't need to reexport everything every time. I would still have another button for global re-export. That one I would

[tw5] Re: Building static sites in the browser

2020-05-13 Thread C. Wess Daniels
Edgaras, yes, that seem to do the trick! On Wednesday, May 13, 2020 at 10:21:06 AM UTC-4, Edgaras wrote: > > One reason could be, if you look closely into the code of that button > there is a filter, I think it limits the export to 25 notes max. You can > increase that I guess

[tw5] Re: Building static sites in the browser

2020-05-13 Thread Edgaras
One reason could be, if you look closely into the code of that button there is a filter, I think it limits the export to 25 notes max. You can increase that I guess [all[tiddlers]!is[system]limit[25]] -- You received this message because you are subscribed to the Google Groups "TiddlyWiki"

[tw5] Re: Building static sites in the browser

2020-05-13 Thread C. Wess Daniels
Hi all - I'm running into a new issue with the pre-release: I went export the site this morning using the new plugin in the pre-released version (installed a few days ago) and it's only exporting the original set of notes I uploaded on Monday. It's not including the 6 new ones I created today.

[tw5] Re: Building static sites in the browser

2020-05-12 Thread 'Celz Alejandro' via TiddlyWiki
@Saq Imtiaz thanks for this! I've been trying to find a way to do this and I got it to work thanks to your instructions! On Saturday, May 9, 2020 at 8:35:59 PM UTC+8, Saq Imtiaz wrote: > > In summary, if anyone wants to write a guide, to adjust filenames and > links (for single file wikis) I

[tw5] Re: Building static sites in the browser

2020-05-11 Thread C. Wess Daniels
Just to close this loop. I was able to get it to work. I started from scratch using the pre-release! Thank you for all the help. I really appreciate. https://nurselog.online/ On Saturday, May 2, 2020 at 4:36:01 PM UTC-4, Jeremy Ruston wrote: > > A disadvantage for some users of TiddlyWiki’s

[tw5] Re: Building static sites in the browser

2020-05-09 Thread Saq Imtiaz
Wess: Two issues: 1. Capitalization https://nurselog.online/Mind-Garden.html and not https://nurselog.online/mind-garden.html Avoid this by adding lowercase[] to both filters, eg [lowercase[]split[

Re: [tw5] Re: Building static sites in the browser

2020-05-09 Thread Mohammad Rahmani
Hi Saq, I got it! A million thanks! Best wishes Mohammad On Sat, May 9, 2020 at 7:08 PM Saq Imtiaz wrote: > @Mohammad if the filter returns a path with an "/" in the file name, you > create a directory structure. The filter I gave is just an example and > users should customize according to

[tw5] Re: Building static sites in the browser

2020-05-09 Thread Saq Imtiaz
@Mohammad if the filter returns a path with an "/" in the file name, you create a directory structure. The filter I gave is just an example and users should customize according to their use case. Also if you can add a link back to the tiddler on TW scripts that would be very helpful. Regards,

[tw5] Re: Building static sites in the browser

2020-05-09 Thread Mohammad
@Saq, I will change the filter to [lowercase[]split[ ]join[-]encodeuricomponent[]addsuffix[.html]] --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

[tw5] Re: Building static sites in the browser

2020-05-09 Thread Mohammad
Many thanks Saq, Briliant! This is really good! I will add this to TW-Scripts! I just missed the part you explained on storing tiddlers in different folders! --Mohammad On Saturday, May 9, 2020 at 5:05:59 PM UTC+4:30, Saq Imtiaz wrote: > > In summary, if anyone wants to write a guide, to

[tw5] Re: Building static sites in the browser

2020-05-09 Thread Saq Imtiaz
@Edgaras it is a valid point, especially when I look back at things I setup a year or two ago! I too tend to: a) place things under a name, for example $:/sq/stories or $:/sq/static and then a filter can be be handy [prefix[$:/sq/static/]] b) when it makes more sense for the tiddler to be in

[tw5] Re: Building static sites in the browser

2020-05-09 Thread TonyM
Folks I am keen to make use of your great work here and the tutorials to match but there has being a lot of water under the bridge. If one or more of can isolate the key changes and package it the instructions will become simpler and even easier to document and teach. Its easy to do with a

[tw5] Re: Building static sites in the browser

2020-05-09 Thread Edgaras
Saq Imtiaz good explanation. It works well with your new update too! What my OCD brain asks: how do you keep track of all those extra small config files that we scatter all over the place? I try at least to list all additional ones I add under my project name. So in the future I can tell

[tw5] Re: Building static sites in the browser

2020-05-09 Thread Edgaras
Hmmm.. I did exactly like that now, and still does not work... I put my whole site here: https://whatif.space/whatifspace.html 3 key files: - Export - $:/whatifspace/templates/static.tiddler.html - $:/whatifspace/Macros/exportlink -- You received this message because you are

[tw5] Re: Building static sites in the browser

2020-05-09 Thread Saq Imtiaz
@Edgaras one thing to note about only exporting tiddlers that were modified since the last export: it will work great if you have simple text content. But if you are using transclusions and widgets, the previously exported tiddlers might not have been modified since the last export, but may

[tw5] Re: Building static sites in the browser

2020-05-09 Thread Saq Imtiaz
In summary, if anyone wants to write a guide, to adjust filenames and links (for single file wikis) I recommend this process as per my current understanding: 1. create a tiddler called $:/config/static/export-link-filter and place here the filter that will operate on the tiddler title to

[tw5] Re: Building static sites in the browser

2020-05-09 Thread Edgaras
*Saq Imtiaz *amazing! It works now! This should be definitely documented! Next thing will be to follow your recommendations and to build filters on what to export ;) Like we talked about the latest edited tiddlers and probably only tiddlers marked with "Publish" tag ;) *Anne-Laure *you

[tw5] Re: Building static sites in the browser

2020-05-09 Thread Saq Imtiaz
Delete $:/whatifspace/static/export/get-export-link.js It tries to do the same thing as tv-filter-export-link but in javascript and the two are interefering with each other. Having the javascript option helps if you want to do something really complex, but using tv-filter-export-link is more

[tw5] Re: Building static sites in the browser

2020-05-09 Thread Edgaras
Hmm... I did exactly like that, but still does not work, adds "./" to links I added my who site here if you bother to see: http://whatif.space/whatifspace.html 3 key tiddlers: - Export - $:/whatifspace/Macros/exportlink - $:/whatifspace/templates/static.tiddler.html -- You received this

[tw5] Re: Building static sites in the browser

2020-05-09 Thread Edgaras
*Saq Imtiaz *woups! Yes I missed what you wrote, or at least did not understand the problem I will get into at that point hehe... I've tried what you said to do, but it does not seem to work. I still get "./" in front of every a href link. I checked with Advanced Search, the filter should be

[tw5] Re: Building static sites in the browser

2020-05-09 Thread Saq Imtiaz
Edgaras: Try this: restore tv-wikilink-template to it's original value in $:/core/templates/server/static.tiddler.html (or your own template) \define tv-wikilink-template() $uri_encoded$ Use this for tv-filter-export-link: \define tv-filter-export-link() [split[ ]join[-]encodeuricomponent[]

[tw5] Re: Building static sites in the browser

2020-05-09 Thread Edgaras
a weird my message got deleted right away when posting... Saq Imtiaz yes, I skipped that part you mentioned, or at least i did not understand the problem I will run into at that point ;D I've tried to create the macro as you said, but it did not help. The filter should be correct I checked

[tw5] Re: Building static sites in the browser

2020-05-09 Thread Mohammad
Nice solution Saq, It would be nice if someone summarize the final solution as a step wize procedure! Cheers Mohammad On Saturday, May 9, 2020 at 12:25:59 PM UTC+4:30, Saq Imtiaz wrote: > > Regarding file names, it pays off to look at what your code is trying to > do ;) > > Pay attention to

[tw5] Re: Building static sites in the browser

2020-05-09 Thread Saq Imtiaz
When you create macro in a tiddler with the tag $:/tags/Macro, you are creating a globally available macro/variable On Saturday, May 9, 2020 at 1:12:30 PM UTC+2, Saq Imtiaz wrote: > > @Edgaras read carefully the second part of my post from 9:55CET in this > thread, starting with the words "Now

[tw5] Re: Building static sites in the browser

2020-05-09 Thread Saq Imtiaz
@Edgaras read carefully the second part of my post from 9:55CET in this thread, starting with the words "Now you need to get your links to match" :) On Saturday, May 9, 2020 at 1:09:30 PM UTC+2, Edgaras wrote: > > > *@Saq Imtiaz *Yes, I read that documentation and I was thinking about it, > but

[tw5] Re: Building static sites in the browser

2020-05-09 Thread Edgaras
*@Saq Imtiaz *oh no no, the exporting works fine now, creates folders and right file names. The problem now are the links within my files are messed up with "./" in front, and I need just "/" because I need to point to root directory. -- You received this message because you are subscribed

[tw5] Re: Building static sites in the browser

2020-05-09 Thread Edgaras
*@Saq Imtiaz *Yes, I read that documentation and I was thinking about it, but I could not find where is that tv-filter-export-link is actually used?? -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop

[tw5] Re: Building static sites in the browser

2020-05-09 Thread Saq Imtiaz
You probably want something like this for tv-filter-export-link: [split[ ]join[-]addsuffix[/index.html]] On Saturday, May 9, 2020 at 12:59:44 PM UTC+2, Saq Imtiaz wrote: > > @Edgaras > > "The tv-wikilink-template variable > controls > the value of the href

[tw5] Re: Building static sites in the browser

2020-05-09 Thread Saq Imtiaz
@Edgaras "The tv-wikilink-template variable controls the value of the href attribute on the HTML a element generated by the $link widget. The tv-filter-export-link

[tw5] Re: Building static sites in the browser

2020-05-09 Thread Edgaras
*Saq Imtiaz *it worked! And the Advance Search filter tip is super helpful:) BUT, there is one problem! Is it a bug? \define tv-wikilink-template() $uri_doubleencoded$.html the tv-wikilink-template() should let you define the custom url link for your site. However, whatever I write I still

[tw5] Re: Building static sites in the browser

2020-05-09 Thread Anne-Laure Le Cunff
Ha that's unfortunate! Good Saq gave you a solution then. I'll also edit the tutorial at some point to add the URL encoding. 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

[tw5] Re: Building static sites in the browser

2020-05-09 Thread Edgaras
*Anne-Laure *yes, but they don't support .htaccess for the time being. Therefore, I want to tweak my TW export for now to export to folders and index.html, that's the only way for now. -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To

[tw5] Re: Building static sites in the browser

2020-05-09 Thread Anne-Laure Le Cunff
@Edgaras: it's very bad practice to do that. I assume you want to get rid of the .html in the file name to clean the URL? All the sites that don't have a file extension at the end of their URLs do that on the server with a .htaccess file for instance, not by doing folder/index.html for each

[tw5] Re: Building static sites in the browser

2020-05-09 Thread Saq Imtiaz
@Edgaras, yes you can. Just tweak the filter to get the structure you want: [split[ ]join[-]addsuffix[.html]] Hint: it is all about the addsuffix operator in this case, and the Filter tab of Advanced Search is a good place to test your filters On Saturday, May 9, 2020 at 11:35:00 AM UTC+2,

[tw5] Re: Building static sites in the browser

2020-05-09 Thread Edgaras
Saq Imtiaz it works and it's very useful! Is there a way to render each file in a dedicated folder? Instead of "My-Tiddly-Note.html" to "My-Tiddly-Note/index.html"? -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group

[tw5] Re: Building static sites in the browser

2020-05-09 Thread Saq Imtiaz
Regarding file titles, it pays off to look at what your code is trying to do ;) Pay attention to the highlighted line below, this is the parameter to the tm-zip-render-file message that provides the file name. \define actions-render-static-site() <$action-sendmessage $message="tm-zip-create"

[tw5] Re: Building static sites in the browser

2020-05-09 Thread Anne-Laure Le Cunff
I have indeed seen people do the kebab casing for their titles to get around the issue: https://tacticaltypos.net/ And yes always good to give credits to TiddlyWiki! I personally have links to tutorials as well on mine: https://www.mentalnodes.com/about -- You received this message because

[tw5] Re: Building static sites in the browser

2020-05-09 Thread Edgaras
C. Wess Daniels I think the idea is to insert "kebab" dashes "-" during the export of your static site, rather than changing the original titles. The titles should stay as they are and the export process should take care of file names and therefore url slugs. -- You received this message

[tw5] Re: Building static sites in the browser

2020-05-08 Thread C. Wess Daniels
It looks like the only solution at this moment (that I'm able to figure out anyway) is to do the "kebab" approach referenced here: https://www.didaxy.com/exporting-static-sites-from-tiddlywiki-part-5 If you look at my page nurselog.online I've fixed the title of one entry to "Mind-Garden"

[tw5] Re: Building static sites in the browser

2020-05-08 Thread TonyM
A Quick Tip; For those using dropbox and drive remember you can synchronise these or part of such as a file or folder locally. If your workflow keeps and saves the output to the local drive it can be automatically synchronised. The only caveat is to make sure the sync finishes before turning

[tw5] Re: Building static sites in the browser

2020-05-08 Thread Anne-Laure Le Cunff
Hi Yoni, Here is a screenshot of what mine looks like. I have no idea what exactly is going wrong but I suspect the browser-based exporter Jeremy built doesn't work exactly like the node-based exporter I'm using. [image: Screenshot 2020-05-08 at 11.56.42 PM.png] On Friday, May 8, 2020 at

[tw5] Re: Building static sites in the browser

2020-05-08 Thread Yoni Balkind
Mind you I'm not sure if I'm correctly setting the type and module type? Anne-Laure I used the 3 fields as show in the screenshot. Is that right? [image: 2020-05-08 21_14_59-Window.png] -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To

[tw5] Re: Building static sites in the browser

2020-05-08 Thread Yoni Balkind
Thank you Anne-Laure! I gave this a quick test run and it did not work.. Put perhaps this gets us part of the way there and someone else can help with the additional steps -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this

[tw5] Re: Building static sites in the browser

2020-05-08 Thread Anne-Laure Le Cunff
I only tested these with the Node.js version of TiddlyWiki, and I didn't have to do anything else beside creating these two files and making sure to set their type properly. When I exported again, the URLs had hyphens instead of spaces between the words. Honestly not sure if there's an extra

[tw5] Re: Building static sites in the browser

2020-05-08 Thread Edgaras
Yoni Balkind sadly Timmini does not have a Safari plugin... Anne-Laure wow, nice thank you for sharing! It seems a bit complex, I put those two macros in the system, but I am not sure how to reference them in the export button code. -- You received this message because you are subscribed to

[tw5] Re: Building static sites in the browser

2020-05-08 Thread Anne-Laure Le Cunff
By the way the files are called something "nurselog" because his website is called Nurse Log, I used "nesslabs" for my files - doesn't really matter but just in case you wonder what "nurselog" is about :) On Friday, May 8, 2020 at 7:39:19 PM UTC+1, Anne-Laure Le Cunff wrote: > > Hi Yoni, see

[tw5] Re: Building static sites in the browser

2020-05-08 Thread Anne-Laure Le Cunff
Hi Yoni, see walkthrough attached. This also should be an easy solution to the URL issue. On Friday, May 8, 2020 at 7:36:43 PM UTC+1, Yoni Balkind wrote: > > @Edgaras regarding TiddlyDesktop not exporting nicely - I'm

[tw5] Re: Building static sites in the browser

2020-05-08 Thread Yoni Balkind
@Edgaras regarding TiddlyDesktop not exporting nicely - I'm just using the normal TW file and saving with Timimi, works nicely. @Anne-Laure I was just about to comment on the fact that I'm still struggling with ugly permalinks like this: www.mysite.com/About%2520this%2520site.html Those

[tw5] Re: Building static sites in the browser

2020-05-08 Thread Anne-Laure Le Cunff
Edgaras - I used this to fix my URLs! On Friday, May 8, 2020 at 7:11:44 PM UTC+1, Edgaras wrote: > > *Yoni Balkind* funny, I am also using fast.io following Anne-Laure's > recommendations, and it works great! I am using

[tw5] Re: Building static sites in the browser

2020-05-08 Thread Edgaras
Yoni Balkind funny, I am also using fast.io following Anne-Laure's recommendations, and it works great! I am using Dropbox instead of Google Drive. Exactly, it would be amazing if it could save to the specified location. Also TiddlyDesktop does not seem to work for exporting at the moment.

[tw5] Re: Building static sites in the browser

2020-05-08 Thread Yoni Balkind
@Edgaras I'd also like a way to export directly to Github pages, but in the interim I've been using to imfast.io to host my site directly from Google Drive. So now I export the static pages to a Google Drive folder on my desktop and imfast.io has access to that folder and automatically updates

[tw5] Re: Building static sites in the browser

2020-05-08 Thread Mohammad
Hello Siniy-Kit! To not hijack this thread, I use another one and I appreciate to give instruction there! --Mohammad On Friday, May 8, 2020 at 2:29:17 PM UTC+4:30, Siniy-Kit wrote: > > Hi, Jeremy. Why you put files to zip? All old Tiddlywiki versions can > generate static multipage sites

[tw5] Re: Building static sites in the browser

2020-05-08 Thread Edgaras
*Saq Imatiaz* thank you so much for the clarification and the encouragement to develop my own use case! I think I could do it, I will let you know if I succeed :D ––– Another thing, is there a way to publish static files directly to GitHub Pages? I know it's already possible to

[tw5] Re: Building static sites in the browser

2020-05-08 Thread Saq Imtiaz
@Edgaras You can do that already actually. As always, TW is very flexible when it comes to these things. The code Jeremy has provided is just an example of how to leverage the new capabilities. Ohter users may have different use cases and needs, so the flexibility is key. What would be useful

[tw5] Re: Building static sites in the browser

2020-05-08 Thread Edgaras
This is very helpful *Jeremy*! Makes TW an even more competitive Static Site Generator and CMS. I have a suggestion that removes the need to export the whole site every time: What if we check the "Last modified" field of every tiddler and export ONLY those that were modified after the latest

[tw5] Re: Building static sites in the browser

2020-05-08 Thread Siniy-Kit
Hi, Jeremy. Why you put files to zip? All old Tiddlywiki versions can generate static multipage sites without node.js and JSZip and any macros. And browsers can download many files at one time. For example open this page

[tw5] Re: Building static sites in the browser

2020-05-07 Thread Suzanne McHale
Yay! *This* is what I have long wanted in TW - an inbuilt choice to export to separate files, rather than have to use the convoluted Node.js method. The only issue is that I am getting the Javascript freeze-up Unresponsive error when using this for a large TW (in Firefox ESR 52.9) - A script

[tw5] Re: Building static sites in the browser

2020-05-07 Thread Yoni Balkind
Hi @Jeremy This plugin is a great help, thank you. I notice that the permalink it generates contains funny characters /About%2520this%2520site.html instead of /About-this-site.html Is there a way I can change this? I think you answered this question above when you say The static templates

[tw5] Re: Building static sites in the browser

2020-05-03 Thread Anne-Laure Le Cunff
I don't use the prerelease and it works perfectly fine for me just with the plugin :) Here is a quick tutorial and here is my implementation if you want to download it straight away. Thanks so

[tw5] Re: Building static sites in the browser

2020-05-03 Thread Thomas Elmiger
This sounds very promising, thanks a lot. I am looking forward to try it when I find the time. Am Samstag, 2. Mai 2020 22:36:01 UTC+2 schrieb Jeremy Ruston: > > To try it out, visit the prerelease and review the docs: > Do we need the prerelease or only the plugin and TW 5.1.22 ? Cheers,

[tw5] Re: Building static sites in the browser

2020-05-03 Thread Anne-Laure Le Cunff
Wow, this is amazing! Thanks so much, Jeremy. Very useful and much easier for less technical users. On Sunday, May 3, 2020 at 5:21:11 AM UTC+1, Mohammad wrote: > > Hi Jeremy, > This is really amazing and this way one can publish small website, blogs, > ... > Thank you a million! > > Few

[tw5] Re: Building static sites in the browser

2020-05-02 Thread Mohammad
Hi Jeremy, This is really amazing and this way one can publish small website, blogs, ... Thank you a million! Few comments: 1. The tiddler contains nasty characters in their titles like (space /\; ) results in uggly filename! Like --render the message tm-zip-render-file can have a

[tw5] Re: Building static sites in the browser

2020-05-02 Thread TonyM
Jeremy, This sounds wonderful, and to achieve it you have introduced additional functionality. It looks like much of this below is possible already, I am just voicing my desires. Your output continues to astound me. - I hope these can be used independently such as the zip method

[tw5] Re: Building static sites in the browser

2020-05-02 Thread 'Mark S.' via TiddlyWiki
In the doc examples, I think it would be better if a real template were used. "The Content" doesn't exist, and suggests a tiddler with content, not a template. I found it confusing, so maybe others will too ;-) For "Create zip file" it might be helpful to indicate that this has to be run

Re: [tw5] Re: Building static sites in the browser

2020-05-02 Thread Jeremy Ruston
> I wonder how many steps would be left to render a complete epub? I think it's > basically a zipped up group of html pages. Yes indeed, that's correct, they're pretty simple (you can rename a random EPUB to .ZIP and unzip it to see). Best wishes Jeremy -- You received this message because

[tw5] Re: Building static sites in the browser

2020-05-02 Thread 'Mark S.' via TiddlyWiki
I wonder how many steps would be left to render a complete epub? I think it's basically a zipped up group of html pages. On Saturday, May 2, 2020 at 1:36:01 PM UTC-7, Jeremy Ruston wrote: > > A disadvantage for some users of TiddlyWiki’s static site generation > capabilities is the requirement

[tw5] Re: Building static sites in the browser

2020-05-02 Thread 'Mark S.' via TiddlyWiki
That's exactly what I was thinking -- a way to download individual tiddlers en masse. On Saturday, May 2, 2020 at 2:15:18 PM UTC-7, Mat wrote: > > Having now tried it - good stuff!!! Thank you Jeremy! > > It would make sense to access this functionality via the usual > AdvancedSearch > Filter

[tw5] Re: Building static sites in the browser

2020-05-02 Thread Mat
Having now tried it - good stuff!!! Thank you Jeremy! It would make sense to access this functionality via the usual AdvancedSearch > Filter export button. <:-) -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and

[tw5] Re: Building static sites in the browser

2020-05-02 Thread Mat
> > To try it out, visit the prerelease and review the docs: > > https://tiddlywiki.com/prerelease/#%24%3A%2Fplugins%2Ftiddlywiki%2Fjszip > >