Hello Mohamed,

> Hello ILYA,
> Did you manage to get a working solution for your requirement? I tried to
use
> "--rendertiddler","$:/core/save/all","index.html","text/plain"
> and I got also a single HTML file.

Just wanted to provide an update from my side. I decided to implement
custom sync adaptor. My current code is in the attached file.
It works as expected if I have following files in the root directory of a
web server

index.html --- built using edition which includes my iilyak/static plugin
tiddlers.json
```

[
  {
        "title": "HelloThere",
        "tags": "FirstTag [[Second Tag]]",
        "fields": {
                "my-custom-field": "Field value"                
        }
  }
]

```
tiddlers/HelloThere
```
{
  "created": "20191128223719980",
  "modified": "20191128223730628",
  "tags": "FirstTag [[Second Tag]]",
  "text": "BlaBla",
  "title": "HelloThere",
  "type": "text/vnd.tiddlywiki",
  "my-custom-field": "Field value"
}
```

In the next couple of days I would be trying to find a way how to generate
independent json files and how to generate tiddlers.json

Best regards,
iilyak

On Mon, Dec 9, 2019 at 1:30 PM Mohamed Sh. Amin <[email protected]> wrote:

> Hello ILYA,
>
> Did you manage to get a working solution for your requirement? I tried to
> use
> "--rendertiddler","$:/core/save/all","index.html","text/plain"
> and I got also a single HTML file.
>
> What I'm thinking now is:-
> 1- some working solution with tiddlywiki.info
> <http://www.google.com/url?q=http%3A%2F%2Ftiddlywiki.info&sa=D&sntz=1&usg=AFQjCNHkNn4VfYQn3QSKVVY1NrUnPOislg>
>  (but
> after TonyM replay I think there is not a direct solution).
> 2- use TiddlyServer API.
> 3- create a script to split the single HTML file to separated files (hope
> not to go this way)
>
> Regards
>
>
>
> On Thursday, November 28, 2019 at 4:36:12 PM UTC+2, ILYA Khlopotov wrote:
>>
>> Hello,
>>
>> I am trying to make an edition which would include a set of plugins and
>> few custom tiddlers. This edition need to be exported as a web site.
>> The website should act as read-only tiddlywiki. I.e. search and all
>> included Javascript should continue to work. The exported site should have
>> index.html (which would contain all system tiddlers) and a set of separate
>> html files for non system tiddlers. All tiddlers from separate files need
>> to be accessible from index.html.
>> Ideally I want to achieve that via tiddlywiki.info file without extra
>> scripts.
>> I know it should be possible but I cannot understand how to make it work.
>> I found few examples but they don't do what I need:
>> - "--rendertiddler","$:/core/save/all","index.html","text/plain"] ---
>> renders everything into a single file 
>> -"--rendertiddler","$:/core/templates/static.template.html","static.html","text/plain"
>> --- produces noJS version of wiki I would like to avoid modifying all my
>> tiddlers. I tried exporting using $:/core/save/empty but I don't know
>> how to refer to other tiddlers (exported in html format) in output/static
>> directory. I included the content of tiddlywiki.info in the attachment.
>>
>> Any hints or examples of doing something like this?
>>
>> Best regards,
>> ILYA
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWikiDev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywikidev/1253387f-4f3c-4adf-9179-5fd31277cf4d%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywikidev/1253387f-4f3c-4adf-9179-5fd31277cf4d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/CAP2DrbRHE7zhLEAjvK63tTo2rD99AeuG-vU9hcEZgEZbkC4Xbw%40mail.gmail.com.

Attachment: $__plugins_iilyak_static.json
Description: application/json

Reply via email to