Hi Jeremy,

I don't have a clear understanding of all the parts in this process, but if the/an aggregator can help at least for some of the parts I'd be happy to give it a try.

I started recently using git with the CommunitySearch aggregator not only to publish the standalone html file but also to track changes in the content (one of the ideas is to be able to output statistics over time, but nothing specific is implemented yet). As far as I can tell, it seems to work: if you go to https://github.com/erwanm/tw-community-search/tree/automatic/tw-community-search you can see the diff corresponding the latest automatic update (the diff is actually very big because the tag tiddlers are re-generated every time, it's something I'll try to solve in the future).

So basically I think it's possible with an aggregator-like system to:

1) download a wiki "mydoc" from tiddlyspot
2) convert it to node.js
3) pull the official TW github repo (or maybe only the documentation part, if possible) 4) replace the official TW tiddlers with the "mydocs" tiddlers (including the ones left unchanged)
5) commit changes to the local git repo

I think that leaves us at least with the line-by-line diff, and maybe it can be taken further by pushing these changes... but I don't know where/how exactly, or how to deal with conflicts?

Issues that I can think of:

* how to transmit the name/address of the wiki to the aggregator?

* if the TW repo has changed since the revision uploaded to tiddlyspot, the commit would revert these modifications. as far as I know, the only way to avoid that is to know exactly which revision was used on the tiddlyspot wiki, but I don't see how this is possible.

* I'm not sure what to do at the end: is it possible to send a github pull request programmatically? or maybe the commit could be pushed to a special repo or branch?

* modifications from several wikis can cause conflicts as well

(disclaimer: I'm familiar with git but no expert)


Regards
Erwan





On 15/09/15 17:18, Jeremy Ruston wrote:
Following up some recent discussions about making it easier for people to contribute improvements to the documentation on tiddlywiki.com <http://tiddlywiki.com>, I've been experimenting with a new edition for documentation contributors:

http://tiddlywiki.com/prerelease/editions/tw5.com-docs/

It's based on a new plugin $:/plugins/tiddlywiki/tw5.com-docs that contains all the documentation tiddlers from tiddlywiki.com <http://tiddlywiki.com>. The advantage is that it's easier to tell which tiddlers you've modified, and to revert to the original.

The idea is that a would-be contributor would clone this edition to TiddlySpot (step-by-step instructions forthcoming), and then make their changes, saving them back to TiddlySpot. I, or anyone else, can fairly easily then pick up the wiki and extract the changed tiddlers into a pull request.

One shortcoming at the moment is that TiddlyWiki gives a warning each time you modify a shadow tiddler.

A desirable feature is the ability to see line-by-line diffs for the changes, and perhaps to be able to easily export a JSON file of the changed tiddlers.

Anyhow, feedback and questions are welcome,

Best wishes

Jeremy.


--
Jeremy Ruston
mailto:jeremy.rus...@gmail.com <mailto:jeremy.rus...@gmail.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 <mailto:tiddlywiki+unsubscr...@googlegroups.com>. To post to this group, send email to tiddlywiki@googlegroups.com <mailto:tiddlywiki@googlegroups.com>.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CAPKKYJbx%3D28BjWYwra3%3DWjmS0fd8FjKmT0JQ4uK%3DXwK-1f%2B9RA%40mail.gmail.com <https://groups.google.com/d/msgid/tiddlywiki/CAPKKYJbx%3D28BjWYwra3%3DWjmS0fd8FjKmT0JQ4uK%3DXwK-1f%2B9RA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/55F9C37B.6050608%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to