Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deploy to github pages #108

Open
guaka opened this issue Mar 10, 2015 · 12 comments
Open

deploy to github pages #108

guaka opened this issue Mar 10, 2015 · 12 comments

Comments

@guaka
Copy link

guaka commented Mar 10, 2015

Would be nice if cleaver presentations could be easily deployed to GitHub pages.
A bit like generator-bespoke does with gulp deploy.

@jdan
Copy link
Owner

jdan commented Mar 10, 2015

Great idea - been playing around with the idea for a long time but was never sure how others did it. Thanks for the example!

@sudodoki
Copy link
Collaborator

I was thinking about creating jekyll-plugin that would convert any *.cleaver.md files into html files, so you could use that with github-pages.

@sudodoki
Copy link
Collaborator

One issue I ran in - need to do the actual work - for this will need to reimplement the transform step in ruby, probably.

@danpaz
Copy link

danpaz commented Mar 26, 2015

I got this to work for my simple case like this:

  • Write my entire presentation in a single slides.md file. Set the output file option to index.html.
  • Build html with cleaver slides.md.
  • Commit and push to github -- first to master, then to a branch called gh-pages. The branch name has to be gh-pages to be picked up by github!
  • After a few minutes the presentation should be live at username.github.io/repo-name.

For example, here's my presentation repo: https://github.com/danpaz/eb-talk.
More info on github pages: https://pages.github.com/.

@jdan
Copy link
Owner

jdan commented Apr 9, 2015

Thanks for the detailed steps @danpaz. My only concern is that I'd like gh-pages to not have any .md or anything, just the output. I'm not 100% sure how to generate the file, move it somewhere temporarily, then move it back after making an (orphaned) gh-pages branch.

Maybe there's a node module to access /tmp on any OS. I'll have to look into it.

If anyone has any insights on this let me know!

@mike-ward
Copy link
Contributor

I use the same method as @danpaz documents. (https://github.com/mike-ward/talk-nancyfx). I don't even bother pushing to master. I just edit and push everything to gh-pages. Works nicely.

@jdan
Copy link
Owner

jdan commented Apr 10, 2015

@mike-ward ha, good point - I guess there's no real need to switch branches.

@danpaz
Copy link

danpaz commented Apr 12, 2015

@jdan What do you think about adding a section to the README with the steps above? I'm happy to make a PR for that if you think it makes sense, and maybe later we can revisit deploying from the cli with one command.

@jdan
Copy link
Owner

jdan commented Apr 12, 2015

I don't think it's too useful for the README - we should just automate it if possible.

@drawveloper
Copy link
Collaborator

Maybe the best solution to this would be to add steps on the README describing how to achieve it.

In general, it's pretty simple. output: index.html and push to gh-pages.

I generally delete the master branch and always use gh-pages for presentation repos.

@iamstarkov
Copy link
Contributor

gh-pages or buildbranch are useful and easy to use locally

@iamstarkov
Copy link
Contributor

automation in CI needs some extra work and attention though, but pretty easy after you done it once

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants