Testing ruby product 'keydown'
I tried to install keydown in my MacOSX.
And I wrote it down here.
git clone
% cd ~/project % git clone https://github.com/infews/keydown.git
PATH & RUBYLIB
% echo 'RUBYLIB=$HOME/project/keydown/lib:$RUBYLIB export RUBYLIB PATH=$HOME/project/keydown/bin:$PATH export PATH ' >> ~/.zshrc_custom % source ~/.zshrc_custom
gem install
% gem install albino [~/project] Fetching: posix-spawn-0.3.5.gem (100%) Building native extensions. This could take a while... Fetching: albino-1.3.2.gem (100%) Successfully installed posix-spawn-0.3.5 Successfully installed albino-1.3.2 2 gems installed Installing ri documentation for posix-spawn-0.3.5... Installing ri documentation for albino-1.3.2... Installing RDoc documentation for posix-spawn-0.3.5... Installing RDoc documentation for albino-1.3.2... % gem install rdiscount [~/project] Fetching: rdiscount-1.6.8.gem (100%) Building native extensions. This could take a while... Successfully installed rdiscount-1.6.8 1 gem installed Installing ri documentation for rdiscount-1.6.8... Installing RDoc documentation for rdiscount-1.6.8...
making slides
create presentation.
% cd ~/project % keydown generate my_presentation [~/project] create my_presentation create my_presentation/my_presentation.md create my_presentation/css/my_presentation.css create my_presentation/css/rocks.css create my_presentation/images create my_presentation/images/cc.large.png create my_presentation/images/flickr.png create my_presentation/js/my_presentation.js create my_presentation/js/rocks.js
change directory.
% cd my_presentation
edit my_presentation.md to avoid problem I don't know well.
perl -pi -e 's/``` ruby//g' my_presentation.md perl -pi -e 's/def method/ def method/g' my_presentation.md perl -pi -e 's/puts "Hello, World"/ puts "Hello, World"/g' my_presentation.md perl -pi -e 's/end/ end/g' my_presentation.md perl -pi -e 's/```//g' my_presentation.md
make slides.
% keydown slides my_presentation.md [~/project/my_presentation] Creating Keydown presentation from my_presentation.md create css/keydown.css create my_presentation.html
open my_presentation.html with Firefox.
% open -a 'Firefox' my_presentation.html