Static html site generators automate many of the tedious steps that are necessary to create website. Octopress is a static html generator that automates many of the tedious tasks of static html site generators, and comes with a number of reasonable presets, configured right out of the box.
I settled on octopress for the following reasons:
In Ubuntu 12.04 I did the following:
sudo apt-get install emacs git zlib1g-dev openssl libopenssl-ruby1.9.1 \ libssl-dev libruby1.9.1 libreadline-dev
rbenv (https://rbenv.org)
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv # set environment in ~/.bash_profile. Change this to ~/.zshrc if using zshell echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile echo 'eval "$(rbenv init -)"' >> ~/.bash_profile source ~/.bash_profile # You can change to .zshrc or .bashrc
Install ruby-build to make installing ruby easy
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
Install ruby
rbenv install 1.9.3-p194 rbenv rehash
git clone git://github.com/imathis/octopress.git octopress cd octopress rbenv local 1.9.3-p194
gem install bundler rbenv rehash bundle install
Rake is like make but for ruby.
rake -T # list all available rake tasks rake install # install themes and default config rake preview # generate and view site
Open localhost:4000 in your webbrowser
rake set_root_dir['blog-test'] rake setup_github_pages rake generate # Change the following url to point to your repository git remote add origin https://github.com/HarryGuerilla/blog-test.git git config branch.master.remote origin git add . git commit -m "initial commit" git push origin master rake deploy # this is where the magic happens
emacs _config.yml # Edit title, author, subtitle
rake new_post emacs post git add . git commit -m "added new post"
rake deploy
Unless otherwise stated, our shows are released under a Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) license.
The HPR Website Design is released to the Public Domain.