Skip to content

rastamhadi/slidemaker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

slidemaker

slidemaker is a collection of Rake tasks that help me prepare slides for presentations.

Prerequisites

  • macOS
  • Git
  • gitsh
  • Ruby
  • rbenv
  • Sublime Text
  • bundler
  • Google Chrome
  • The LiveReload Chrome extension
  • Apache set up as in this article
  • A Bitbucket account for privately storing your slidedeck project
  • A GitHub Pages repository for publicly hosting your slides

Installation

Clone this git repository:

$ git clone git@github.com:rastamhadi/slidemaker.git

Generating a new slidedeck project

  1. Create a new directory for your slidedeck project:

    $ mkdir my_awesome_talk
    
  2. Copy the slidemaker Rakefile into your new directory:

    $ cp /path/to/slidemaker/Rakefile /path/to/my_awesome_talk
    
  3. Modify the SLIDEMAKER_PATH in your Rakefile as necessary.

  4. Run rake init and supply a title when prompted.

    $ rake init
    ...
    What is the title of your slides?
    My Awesome Talk!
    ...
    

Working on your slides

  1. Run rake. This will launch:

    • your workspace in Sublime Text
    • your slides in Google Chrome
    • Guard
  2. Enable your LiveReload extension to refresh your slides on the fly.

Version control with Bitbucket

Run rake gitsh to launch the project in gitsh.

Don't forget to create a new Bitbucket repository if you don't have one already.

Hosting your slides locally

Run rake host:url. This command will print the URL for your slides.

$ rake host:url
http://192.168.123.456/~your_name/my_awesome_talk

Exporting your slides as a PDF

  1. Run rake pdf. This will launch your slides in Google Chrome in print-pdf mode.
  2. Open the Print dialog (File > Print...) and Save as PDF.

Print to PDF

Extracting and publishing static assets on GitHub Pages

These tasks assume that your GitHub Pages repository is named slides and that it is located in the same directory as your slidedeck project.

  1. Run rake static:extract. This will copy all static assets into your GitHub Pages repository.
  2. Run rake static:sublime and adjust your slidedeck's README to your liking.
  3. Run rake static:gitsh to launch your static assets project in gitsh. Commit and push your changes to deploy your slides.

About

Rake tasks that help me prepare reveal-js slides for presentations.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published