5 ms·
Sorry if it's a dumb question. But how does this workflow work? Are the html/js/css generated on my local pc, or on the github server? I don't get it. (I have
by maximumoverload 12y ago
Sorry if it's a dumb question. But how does this workflow work?
Are the html/js/css generated on my local pc, or on the github server? I don't get it.
(I have no experience with Jekyll. I have some static pages on github pages.)
- stevekinney 12y agoI believe the files are generated on Github's servers. You can install Jekyll locally to get the same workflow locally.
- swanson 12y agoWhen you run Jekyll, it spits out an `_site` folder - which is the generated HTML/CSS/JS of your site. Locally, when you run the Jekyll server it generates the site and then serves from that folder for you to preview. With GitHub pages, you push a repository containing the Markdown files, but not the full generated site. On GitHub's server it generates the site and then serves it. You will want to add the `_site` folder to your `.gitignore`.
- ionforce 12y agoI was planning to write a guide on this... you know, some day... From what I understand, Jekyll (the web site builder) automatically runs on their end. And, as the other poster mentioned, you can simulate the result of this by running a local copy of Jekyll on your local checkout. But in the end, only the Jekyll input configuration/source data is required. The rest is optional.
- omarrr 12y agoPages are generated on Github servers. As somebody mentioned you can run Jekyll locally to preview the rendered pages or simply push to github and review online.
- baddox 12y agoIt looks like you just commit plaintext files (or markdown, or any of several other formats) into your repo and they get built into HTML by jekyll and hosted as articles on your site. http://jekyllrb.com/docs/structure/ http://jekyllrb.com/docs/structure/
- archagon 12y agoAs an aside, if your Jekyll workflow requires custom plugins (which Github doesn't support), you can always generate the site locally and push the contents of the _site folder to Github.
- linuxydave 12y agoWhile I don't host my Jekyll blog on Github I do something similar with my Jenkins server. Webhooks + Jenkins = CI/CD for my blog :)
- kehers 12y agoAs said, they are generated on Github. There are online content editors like http://prose.io http://prose.io and http://tinypress.co http://tinypress.co (for Github page blogging) though.
- joshschreuder 12y agoThanks for the links, I've been looking for something a bit more editor GUI like rather than editing files.
- ende 12y agoI edit locally using Atom, using the Markdown Preview package to see what I'm doing, then generate a full site preview in jekyll, then push to github.