Tinkerer でブログ書く。
今まではgithubでocropressで書いてたけど、やっぱこれからは sphinx でしょ! markdown より reStructuredText でしょ!
で、 bitbucket を使う。
bitbucket では、 github と同じように、 <ユーザー名>.bitbucket.org で 自分のページを持つことが出来る。
リポジトリの作成
bitbucket で、 <ユーザー名>.bitbucket.org というリポジトリを作る。 僕の場合は、 yukimemi.bitbucket.org
Tinkererのインストール
僕の場合は python3 ではダメだったので、 python2.7.4 で virtualenv を作成して Tinkerer をインストールした。 python のインストールには pythonz を使用している。
bash
1
2
3
4
5
$ pythonz install 2.7.4
$ mkvirtualenv -p /Users/yukimemi/.pythonz/pythons/CPython-2.7.4/bin/python --distribute 2.7.4
$ workon 2.7.4
$ easy_install pip
$ pip install Tinkererブログの作成
bitbucketでgit repositoryを作成したら、それを clone する。
bash
1
2
$ git clone ssh://git@bitbucket.org/yukimemi/yukimemi.bitbucket.org.git
$ cd yukimemi.bitbucket.orgclone した後は、 Tinkerer でブログを初期化する。
bash
1
$ tinker -sそして、 同ディレクトリに作成された、 conf.py を適当に修正する。
python
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#
# TODO: Edit the lines below
#
# Change this to the name of your blog
project = 'yukimemi blog'
# Change this to the tagline of your blog
tagline = ''
# Change this to the description of your blog
description = 'This is yukimemi\'s blog'
# Change this to your name
author = 'yukimemi'
# Change this to your copyright string
copyright = '1984, ' + author
# Change this to your blog root URL (required for RSS feed)
website = 'http://yukimemi.bitbucket.org/'
#
# More tweaks you can do
#
# Add your Disqus shortname to enable comments powered by Disqus
disqus_shortname = 'yukimemi'こんな感じ。コメントシステムは Disqus が採用されているので、事前にアカウント作成しておく必要あり。
ブログの作成は以下のコマンドで
bash
1
$ tinker -p "First Tinkerer"これで、
text
1
2
3
4
├── 2013
│ └── 05
│ └── 27
│ ├── first_tinkerer.rstこんなふうに reST ファイルが出来るので、編集する。
text
1
$ vim 2013/05/27/first_tinkerer.rst編集が終わったら、ビルドする。
text
1
$ tinker -b実に簡単。 確認は index.html をブラウザで開けばおっけー。
問題なければ bitbucket に push
text
1
2
3
$ git add .
$ git commit -m "initial commit"
$ git push -u origin master