Code Monkey home page Code Monkey logo

publishing-reveal-ck-slides's Introduction

publishing-reveal-ck-slides

This repository is a set of slides.

This repository is referenced and used as an example in the reveal-ck wiki at Publishing-Slides.

How can a git repository be a set of slides?

The master branch contains files that configure and serve as general input to a ruby gem called reveal-ck.

The reveal-ck gem takes this input and generates a set of static HTML files. These files are a presentation when viewed in a browser.

Further-- if you take these static file and commit them to the gh-pages branch, then, through the magic of Github Pages, you'll see the presentation here: http://jedcn.github.io/publishing-reveal-ck-slides

And that's how this repository is a set of slides:

  • The source of the slides are on master, and
  • The generated result is on gh-pages.

See slides.md for the slide source and http://jedcn.github.io/publishing-reveal-ck-slides for the generated result.


Details

If you're looking to do the same thing, here's what I did:

Create Slides as you normally would

First-- I created all of my slides initially and commited them on the master branch.

Create a gh-pages branch

Next, I created and pushed up some placeholder content to Github Pages with the following commands (from these official instructions):

cd /tmp
git clone https://github.com/jedcn/publishing-reveal-ck-slides
cd publishing-reveal-ck-slides
git checkout --orphan gh-pages
git rm -rf .
echo 'Coming Soon' > index.html
git add index.html
git commit -m "Barebones gh-pages commit"
git push origin gh-pages:gh-pages
rm -rf /tmp/publishing-reveal-ck-slides

These commands create a temporary clone in the /tmp/ directory. I had my original clone elsewhere on my computer.

Clone gh-pages into ./slides/

Then I went back to my original clone, made sure slides was in my .gitignore, and ran the following commands:

rm -rf slides
git clone https://github.com/jedcn/publishing-reveal-ck-slides.git --branch gh-pages --single-branch ./slides

Finally, re-generate and push

bundle exec reveal-ck generate
cd slides
git add .
git commit -m "Files after initial reveal-ck generate"
git push origin gh-pages:gh-pages

And now the slides are available at: http://jedcn.github.io/publishing-reveal-ck-slides

publishing-reveal-ck-slides's People

Contributors

jedcn avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.