Translation - yusukew62/docs GitHub Wiki

Translation

Python Guide

ローカル環境上(MacOS)のapacheの起動方法

# /opt/local/etc/LaunchDaemons/org.macports.apache2/apache2.wrapper start

以下にコンテンツを置く

# pwd
/opt/local/apache2/htdocs
# ls -l
lrwxr-xr-x  1 root    admin     41 12 31 16:09 pelican@ -> /Users/wmba13/yusukew62.github.io/output/
lrwxr-xr-x  1 root    admin     39 12 17 15:13 python-guide@ -> /Users/wmba13/python-guide/docs/_build/
lrwxr-xr-x  1 root    admin     58 12 18 00:50 python-guide-proto@ -> /Users/wmba13/python-guide-proto/python-guide/docs/_build/

ローカル環境上のpython-guideのURL

http://127.0.0.1/python-guide/html/

追従ブランチを追加する

# git remote add upstream https://github.com/kennethreitz/python-guide.git

リモートリポジトリからローカルリポジトリへfetchする

# git fetch upstream

追従ブランチをマージする

# git merge upstream/master

ローカルリポジトリ ja で翻訳したものを jaリポジトリに上げつつ、readthedocで公開できるようmasterブランチにアップロードする

# git push origin ja:ja
# git push origin ja:master

Githubへ公開できたらreadthedocへログインしビルドされたか確認を行う
※ビルドには少し時間がかかる、成功とでたら完了