git
or Github Knowledge and without installing any software on your computer:Hi DanieloWorks like a charm -- I have your demo site up and running -- shouldn't take much longer to publish my wiki :-)regards
Hi
No problems -- instructions were easy to follow. The only hitch I had was at stage 14: it was not clear at first, that changes would only be evident on switching to the 'Current' page once an edit at Github had been committed and had propagated to Travis-ci (which took a little time.)
At first I expected to see something the moment I switched back to the 'Current' page (I was also a little disconcerted by the absence of a 'Save' button in the settings page.)
From there on I shall be taking a different route -- I will: Clone the repository to my Mac with SourceTree; Open the local branch in SourceTree; Edit tiddlers with my favoured editor (currently playing around with Light Table); Commit and push changes back to Github.
I'll see how things work out -- also need to go through the process of cloning the demo wiki and creating another wiki. Might be useful to place a link on the readme.md, pointing back to your master repo.
in less than 10 minutes without anygit
or Github Knowledge
I guess the ideal would be an invisible github backend that TW users don't even have to confront.
This all seems a bit much, even if it does give (semi-) instant gratification. There is a bit of a delay while Travis CI does its thing in the background. A solution which completely insulates the user from the GitHub UI would really be great here.
Q: Because you emphasize (in step 3) that providing a meaningful token description is very important and that (step6) there is only one opportunity, I must actually ask what a token is in this context. I'm not sure how it will be used so I don't know how to "provide a meaningful description".
Another trick I'd like to learn is how to edit my $:/favicon.ico file when it's in GitHub. What I'm seeing in the GitHub UI is that there are now two files for this: favicon.ico and favicon.ico.meta. I cannot seem to edit the main favicon.ico file, there is only an option to view it, not to edit it. I have the base64 encoded copy of my current favicon from my old Google Drive version of my online TW5 instance, but I can't seem to migrate it to GitHub.
Danielo - thank you! Considering how tiddlywiki.com resides on github, if github could be a more integral part with TW for the common user it might be a very good solution to get a TW online.
(I guess the ideal would be an invisible github backend that TW users don't even have to confront.)
Q: Because you emphasize (in step 3) that providing a meaningful token description is very important and that (step6) there is only one opportunity, I must actually ask what a token is in this context. I'm not sure how it will be used so I don't know how to "provide a meaningful description".
Thanx!<:-)
--
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+...@googlegroups.com.
To post to this group, send email to tiddl...@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/282b4280-c7ed-4033-9f23-bdb018894548%40googlegroups.com.
Hi @Danielo,
As you might have seen, I'm starting to get the idea of how to edit my tiddlers on GitHub, and my dev instance there is starting to look the same as my dev instance on Google Drive. I had this strange delusion that I could just upload my current dev.html file to replace your whole default wiki in my cloned branch of your TW5-auto-publish2gh-pages. Now I'm getting the idea of how to do it properly, by exporting *.tid files for each of my existing tiddlers, and copy/pasting them into my GitHub cloned repo.
@Danielo, I copied my $:/config/DefaultSidebarTab system tiddler to my TW5 wiki on GitHub, but it doesn't seem to be working. When I refresh the browser tab displaying my wiki, there is no tab selected in the TW5 SideBar.
Regards,
Hegart.
That is because you have a line feed at the end of the file. It is not evident when you are viewing the file, but if you edit it you can see that it has 5 lines, where it should only have 4. Remove the last line and you are ready to go. Github/git usually adds line feeds for you (sooo smart! maybe too much), and tiddlywiki does not like them on config tiddlers. I don't know what is worse, git doing things without asking or tiddlywiki being so picky.
Regards
--
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+...@googlegroups.com.
To post to this group, send email to tiddl...@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/4526b857-d693-4da4-8fc1-5671524d5919%40googlegroups.com.
Hi DanieloMy congratulations on this latest development.
Using TiddlyWiki as a building block with other tools is incredibly powerful, and in this case it's very useful
- I'd be interested in adopting the same technique for automatically building tiddlywiki.com when the content changes.
Best wishesJeremy.
Jeremy, can I ask you how have you deal with Oauth in tiddlywiki on the sky? How do you get the token for the user? where are you storing your application's secret? If you don't want to share the details here, you can send me an email directly.
Many regards.
Following on from what I've been doing so far to bring my dev wiki from Google Drive to GitHub, how would I migrate the shadow tiddler $:/core/save/all?
I assume I'd need to create a new /core subfolder with a /save subfolder under that, both of which would reside under /wiki/tiddlers/system in my cloned repo. Then I'd create the file all.tid and populate it with the contents from my Google Drive copy. Is that about right?
Also, thinking ahead here, how hard is it going to be for me to upgrade my dev wiki on GitHub when @Jermolene releases TW v5.1.10 and later?
Very nice Danielo! While I prefer using the command line and pushing stuff to GitHub, I think this is a huge step towards hosting AND edititing wiki's at GitHub!
As I said, this works exactly the same as the node version, because indeed it is a node version.
You can, of course, use that folder hierarchy if you want, but you are not forced in any way. The only requirement is to place the tiddlers under the tiddlers folder, that's all.
This is a cool side effect of Travis system, each virtual machine is "snapshot-ed back" after each built, so you always start from a fresh environment.
Hi DanieloI am still having problems following the instructions for the creation of a second wiki -- when I visit your repo. and click the fork button, I expect to create a new Branch (named TW5-auto-publish2gh-pages), but I am instead returned to my existing Branch/master.This might be a git issue, but I'm still stumped :-(regards
2. Change into the directory containing the local clone
$ cd TW5-auto-publish2gh-pages.git
3. Push this local copy to each of your remote repositories
$ git push --mirror https://github.com/username/first_repo
$ git push --mirror https://github.com/username/second_repo
...
4. The clean the local clone off your machine
$ cd ..
$ rm -rf TW5-auto-publish2gh-pages.git
5. Visit each of your repositories on Github to see if all's well -- then follow Danielo's instructions for each repo. from there on to link to Travis-ci
Hope this helps.
regards
The only other solution is to "clone" the repository and then "push" it to a new repository on you account.
You're not going to make pull requests from that repo,
Once again, with my ignorance of all things Git, does cloning vs forking have any bearing on future updates from @Jermolene's Master?
I did notice that there is the option for me to make a pull request from my fork back to @Danielo's Master, but that didn't seem to be a reasonable idea. He wouldn't want my own customisations back in his Master. I made a pull request once in his Master, but that was only for proofreading some minor edits in his README.md file, and that was while I was in his Master, not from my fork.
Sorry, I'm still learning the Git lingo here. I think a few times in the past on these discussion forums I've referred to "my cloned repo", when I probably meant to say "my forked repo".
I have a solution for your problem creating new wikis, and, as I have promised, without any software installation or Git knowledge. let me know if this set of images is enough:
Hi DanieloI have a solution for your problem creating new wikis, and, as I have promised, without any software installation or Git knowledge. let me know if this set of images is enough:Looks good, the first image would benefit from the headline saying we're creating a repo.
Other than that, this should be the workflow being used.
Once again, with my ignorance of all things Git, does cloning vs forking have any bearing on future updates from @Jermolene's Master?
Hi DanieloMany thanks -- makes perfect sense -- even easier than your first method
(I hadn't noticed the 'Import Code' button.)
For your instructions, I suggest setting up Travis management immediately after creating the repository but before importing your codebase -- that way the first build gets triggered during the setup.
A user may then visit their new wiki on Github pages immediately after completing setup - a little less room for confusion.
I've followed your excellent step-by-step-setup but I have one question. How do I push my Node-version from my mac to Github without having to create the .tid one by one? I have 27000 .tid-files I like to batch upload :)
Regards
--
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/s8pnvQW5UgY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/02781051-d940-414d-8dbe-8258159a3afc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
"static": [ | |
"--rendertiddler","$:/core/templates/static.template.html","static.html","text/plain", | |
"--rendertiddler","$:/core/templates/alltiddlers.template.html","alltiddlers.html","text/plain", | |
"--rendertiddler","$:/core/templates/static.template.css","static/static.css","text/plain", | |
"--rendertiddlers","[!is[system]]","$:/core/templates/static.tiddler.html","static","text/plain"] | |
Regards
Instead of creating a new command, just add your --rendertiddler commands to the list contained within build:
"build": {
"static" :[ your build command here],
"index": [
"--rendertiddler","$:/plugins/tiddlywiki/tiddlyweb/save/offline","index.html","text/plain"],
"favicon": [
"--savetiddler","$:/favicon.ico","favicon.ico"],
"readme": [
"--rendertiddler","ReadMe","readme.md","text/html",
"--rendertiddler","License","license.md","text/html"]
}
Dear Danielo,it works. I put my command ("static") in front of your build command ("index") and it gets working. Perhaps I'm not enough knowledgable on tiddlywiki.info.Thanks a lot.
--
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/s8pnvQW5UgY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/8517568c-99cc-41e0-b786-5701f04173b3%40googlegroups.com.
--
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/s8pnvQW5UgY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/3298dd4d-edb2-43ba-95b8-ddcafb6b453e%40googlegroups.com.
github.com/<user_name>/<user_name>.github.io
if exist static\ del /s/q static\ > nul
if exist index.html del /s/q index.html > nul
if exist static.html del /s/q static.html > nul
if exist \temp1029384756 del /s/q \temp1029384756 > nul
if exist \temp1029384756 rd \temp1029384756 > nul
call tiddlywiki ./wiki --build
md \temp1029384756
xcopy /s/y wiki\output\*.* \temp1029384756 > nul
xcopy /s/y \temp1029384756\*.* > nul
del /s/q \temp1029384756 > nul
rd \temp1029384756 > nul
del /s/q wiki\output > nul
image: node:6.9.4
pages:
cache:
paths:
- node_modules/
script:
- npm install -g tiddlywiki
- tiddlywiki ./wiki --build
artifacts:
paths:
- public
only:
- master
"build": {
"static": [
"--rendertiddler","$:/core/templates/static.template.html","static.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"],
"index": [
"--rendertiddler","$:/plugins/tiddlywiki/tiddlyweb/save/offline","index.html","text/plain"]
}
┬─ .gitlab-ci.yml
├─ wiki
├─ tiddlers
│ └─ <tiddlers>
├─ output
│ └─ <static html-files>
└─ tiddlywiki.info
┬─ .gitlab-ci.yml
└─ wiki
├─ tiddlers
│ └─ <tiddlers>
├─ output
│ └─ <static html-files>
└─ tiddlywiki.info
mv output/static /public
pages:
before_script: []
stage: pages
<<: *dedicated-runner
dependencies:
- your:build:task
script:
- mkdir public/
- mv output/static public/
artifacts:
paths:
- public
Motivated for Matabele's post about how and where host tiddlywiki files I want to announce that I have been investigating and looking for a way to do this easily on Github pages.We all love Github pages. They are an easy,reliable and cheap way to host static sites. TiddlyWiki is a single page web application that can be hosted as a single html file. The problem with it is that there is not an easy fast way to host a tiddlywiki file on github pages... until now.I have created a repository/tutorial to host a tiddlywiki on your own Github pages repository. Following it you will be able to have your own wiki up and runing in less than 10 minutes without anygit
or Github Knowledge and without installing any software on your computer:Sounds pretty neat uh?@Jeremy, If you feel that this could be useful, feel free to add it to the community resources. Maybe I can create a small tiddler pointing to the tutorial. In fact it is similar to "hosting a tiddlywiki on dropbox", so it can be a tiddler of the same category.Questions, ideas, doubts and pull requests are very welcome.Regards
I just added suppor for gitlab pages. The workflow is much easier, is just a matter of clonning the repository on your gitlab account. For the momment please ignore the readme, it is the version of github.https://gitlab.com/danielo515/tw5-auto-publish2gitlab-pages
--
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/s8pnvQW5UgY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/239ec11f-ac8d-442a-afe6-db586f32fc82%40googlegroups.com.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/453a481d-a3f8-4ff6-999d-ade6679b98e4%40googlegroups.com.