3. Jekyll
● Static site generator (written in ruby)
~ $ gem install jekyll
~ $ jekyll new my-awesome-site
~ $ cd my-awesome-site
~/my-awesome-site $ jekyll serve
# => Now browse to http://localhost:4000
4. Octopress
●
●
●
●
●
●
Blog-aware static site generator
Written in Ruby for Jekyll
You write new posts as markdown files
Whole blog consists only of static files
Use plugins (eg: Disqus) for dynamic content
Requires Ruby 1.9.3
http://octopress.org/
5. Installing Octopress
git clone git://github.com/imathis/octopress.git octopress
cd octopress
gem install bundler
rbenv rehash
# If you use rbenv
bundle install
rake install
http://octopress.org/docs/setup/
6. First blog post
rake new_post["Hello From DRUG 50"]
#edit newly created file in source/_posts, use markdown
friendly editor
rake generate
rake preview
#go to: http://localhost:4000
http://octopress.org/docs/blogging/
7. Deploy to GitHub pages
#create github repo called: username.github.io
rake setup_github_pages
#enter: git@github.com:username/username.github.io.git
rake generate
rake preview #if needed
rake deploy #blog goes go master branch
#go to: http://username.github.io
#commit your changes to ‘sources’ branch
git add .
git commit -m 'commit message'
git push origin source
http://octopress.org/docs/deploying/github/