slidemaker
is a collection of Rake tasks that help me prepare slides for presentations.
- 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
Clone this git repository:
$ git clone git@github.com:rastamhadi/slidemaker.git
-
Create a new directory for your slidedeck project:
$ mkdir my_awesome_talk
-
Copy the
slidemaker
Rakefile into your new directory:$ cp /path/to/slidemaker/Rakefile /path/to/my_awesome_talk
-
Modify the
SLIDEMAKER_PATH
in your Rakefile as necessary. -
Run
rake init
and supply a title when prompted.$ rake init ... What is the title of your slides? My Awesome Talk! ...
-
Run
rake
. This will launch:- your workspace in Sublime Text
- your slides in Google Chrome
- Guard
-
Enable your LiveReload extension to refresh your slides on the fly.
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.
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
- Run
rake pdf
. This will launch your slides in Google Chrome inprint-pdf
mode. - Open the
Print
dialog (File > Print...
) andSave as PDF
.
These tasks assume that your GitHub Pages repository is named slides
and that it is located in the same directory as your slidedeck project.
- Run
rake static:extract
. This will copy all static assets into your GitHub Pages repository. - Run
rake static:sublime
and adjust your slidedeck's README to your liking. - Run
rake static:gitsh
to launch your static assets project in gitsh. Commit and push your changes to deploy your slides.