Using Sphinx

Installing Sphinx into MacOSX 10.7 (Lion)

Execute following two commands to install.

% sudo easy_install pip
% sudo pip install Sphinx

That’s all.

Installing Sphinx into Cygwin

Install wget and python using Cygwin setup.exe. Then, execute following commands to install.

% wget http://peak.telecommunity.com/dist/ez_setup.py
% python ez_setup.py
% easy_install pip
% pip install Sphinx

How to create tach.github.com

At first, create github repository at https://github.com/tach/tach.github.com and clone it.

% git clone git@github.com:tach/tach.github.com.git

Then, create src directory and run sphinx-quickstart. You may answer all questions as default.

% cd tach.github.com
% mkdir src
% cd src
% sphinx-quickstart

Install phinxtogithub extension (https://github.com/michaeljones/sphinx-to-github) into your exts directory.

% mkdir exts
% pushd exts
% git clone git://github.com/michaeljones/sphinx-to-github.git
% rsync -rlvHS --exclude=tests sphinx-to-github/sphinxtogithub ./
% rm -rf sphinx-to-github
% popd

Edit sys.path on your conf.py and Add extension settings.

sys.path.insert(0, os.path.abspath('exts'))
extensions = [ "sphinxtogithub" ]
# options for sphinxtogithub
sphinx_to_github = True
sphinx_to_github_verbose = True

Edit your Makefile like https://github.com/tach/tach.github.com/blob/master/src/Makefile .

At last, run make publish to publish your pages.

% make publish

Table Of Contents

Previous topic

tach.github.com

Next topic

Debian GNU/Linux Development

This Page