Re: [tw5] Re: ExternalizeImages - having trouble

2020-03-03 Thread Ed Heil
Oh wow thank you!  Putting that at the top of my reading list!

> On Mar 4, 2020, at 12:00 AM, Donald Coates  wrote:
> 
> 
> Just discovered that site myself and it's awesome.  Also check out 'the book' 
> I am finding it very informative even as a wip.  Welcome to the obsession!  
> External Images were always a bit of a conundrum for me as well.
> 
> -- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/tiddlywiki/wf0bbRZ9vig/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> tiddlywiki+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/0288b8a0-79f8-463d-8e50-cc503df41827%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/A83F4E29-33B7-4F20-BBB4-629449035230%40fastmail.fm.


[tw5] Re: ExternalizeImages - having trouble

2020-03-03 Thread Donald Coates
Just discovered that site myself and it's awesome.  Also check out 'the 
book' 

 
I am finding it very informative even as a wip.  Welcome to the obsession!  
External Images were always a bit of a conundrum for me as well.

-- 
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/0288b8a0-79f8-463d-8e50-cc503df41827%40googlegroups.com.


[tw5] Re: ExternalizeImages - having trouble

2020-03-03 Thread Donald Coates
Not sure if this helps but the _canonical_uri field is not a default 
field.  I wonder if you have to add it manually before you run your script, 
otherwise nothing runs after that command which seems to be what you are 
describing.  I kind of doubt it because I would think TW would add it with 
the setfield command but it's worth a look.  Also, did you try to run each 
command separately outside of the script and it worked that way?

-- 
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/7c5c83c7-fa32-42bf-af3b-523fc19820c4%40googlegroups.com.


[tw5] Re: ExternalizeImages - having trouble

2020-03-03 Thread Ed Heil
Welp, of course, as soon as you ask for help in public, you figure it out 
yourself.

I was reading this, hoping for info on build targets 
-- https://www.didaxy.com/exporting-static-sites-from-tiddlywiki-part-2

and I saw that there they were using commands like:

tiddlywiki --rendertiddlers [!is[system]tag[Live]] 
$:/core/templates/static.tiddler.html static text/plain --rendertiddler 
$:/core/templates/static.template.css static/static.css text/plain

where you throw a bunch of ---commandline --options onto a single 
invocation of the "tiddlywiki" command.

That was the problem, of course, and once I got rid of the multiple 
tiddlywiki commands and combined them all into one it worked!


-- 
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/3da3d71a-a94a-424d-ac0e-677e1cd45265%40googlegroups.com.


[tw5] Re: ExternalizeImages - having trouble

2020-03-03 Thread Ed Heil
Oh, I thought maybe I should try this with a build target instead of a 
shell script.

So I looked in the tiddlywiki.com docs for an example of build targets. 
 and couldn't find one.

The build *command* is described here 
-- https://tiddlywiki.com/#BuildCommand  -- but it doesn't talk about how 
to define build targets

It refers you to "tiddlywiki folders" here 
-- https://tiddlywiki.com/#TiddlyWikiFolders "for details of defining build 
targets."  But there are no details about defining build targets there; 
build targets are never mentioned.

Under the heading "tiddlywiki.info  Files"  here -- 
https://tiddlywiki.com/#tiddlywiki.info%20Files  we have the following info:

build - a hashmap of named build targets, each defined by an array of 
command tokens (see BuildCommand)

Of course, Buildcommand doesn't tell you anything about arrays of command 
tokens.

I assume from that description, since I know what JSON is and what hashmaps 
and arrays are, that we're looking for is something like:

{
"themes": [
"tiddlywiki/snowwhite",
"tiddlywiki/vanilla"
],
"build": {
  "externalimages": [

  ]
}
}

where what's in "externalimages" are a list of "command tokens" but 
"command tokens" are not mentioned anywhere else.

The documentation is pretty unhelpful here.

-- 
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/0bef4941-d688-460b-8ff3-4987116264d1%40googlegroups.com.