$ cd path/to/workspace
$ git clone git@github.com:befool-inc/befool-inc.github.com.git
$ cd befool-inc.github.com
$ git checkout -b source origin/source
依存ライブラリの取得
12
$ gem install bundler
$ bundle install
rakeタスクの確認
Octopressのrakeタスクが一覧されるか試してみましょう。
1234567891011121314151617181920
$ rake -T
rake clean # Clean out caches: .pygments-cache, .gist-cache, .sass-cacherake copydot[source,dest]# copy dot files for deploymentrake deploy # Default deploy taskrake gen_deploy # Generate website and deployrake generate # Generate jekyll siterake install[theme]# Initial setup for Octopress: copies the default theme into the path of Jekyll's generator.rake integrate # Move all stashed posts back into the posts directory, ready for site generation.rake isolate[filename]# Move all other posts than the one currently being worked on to a temporary stash location (stash) so regenerating the site happens much more quickly.rake list # list tasksrake new_page[filename]# Create a new page in source/(filename)/index.markdownrake new_post[title]# Begin a new post in source/_postsrake preview # preview the site in a web browserrake push # deploy public directory to github pagesrake rsync # Deploy website via rsyncrake set_root_dir[dir]# Update configurations to support publishing to root or sub directoryrake setup_github_pages[repo]# Set up _deploy folder and deploy branch for Github Pages deploymentrake update_source[theme]# Move source to source.old, install source theme updates, replace source/_includes/navigation.html with source.old's navigationrake update_style[theme]# Move sass to sass.old, install sass theme updates, replace sass/custom with sass.old/customrake watch # Watch the site and regenerate when it changes
こんな感じで表示されればOKだ。
記事を書いてみる
箱形の作成
まずは記事を書くための箱形の作成を行います。
123
$ rake new_post['foo bar zoo']mkdir -p source/_posts
Creating new post: source/_posts/2013-05-01-foo-bar-zoo.markdown
markdownの編集
markdown形式で記事を書きます
1
$ vi source/_posts/2013-05-01-foo-bar-zoo.markdown