Skip to content

Instantly share code, notes, and snippets.

@kaosf
Created June 6, 2015 16:21
Show Gist options
  • Select an option

  • Save kaosf/860356ad729221f8729a to your computer and use it in GitHub Desktop.

Select an option

Save kaosf/860356ad729221f8729a to your computer and use it in GitHub Desktop.
# OS: Ubuntu 14.04 amd64
# `cat /etc/lsb-release`
#=>
# DISTRIB_ID=Ubuntu
# DISTRIB_RELEASE=14.04
# DISTRIB_CODENAME=trusty
# DISTRIB_DESCRIPTION="Ubuntu 14.04.2 LTS"
sudo apt-get install haskell-platform
echo 'export PATH=$HOME/.cabal/bin:$PATH' >> $HOME/.zshenv
source $HOME/.zshenv
cabal update
cabal install pandoc
# pandoc version: 1.14.0.4
# NOTE
# "-t", "slidy", "-i", "-s", "-V", "slidy-url=."
# Reference
# https://github.com/igrep/igreque.info/blob/b880fbf9ce0443f4c756a9843dc065fa7e67ac6f/main.hs#L64-L69
pandoc -i input.md -t slidy -s > output1.html
pandoc -i input.md -t slidy -s -V slidy-url=. > output.html
mkdir styles scripts
wget http://www.w3.org/Talks/Tools/Slidy2/styles/slidy.css -O styles/slidy.css
wget http://www.w3.org/Talks/Tools/Slidy2/scripts/slidy.js -O scripts/slidy.js
# Reference
# http://the.igreque.info/slides/2015-06-04-omotesando.rb.html#%281%29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment