勉強したこと、調べたことを記録する
. ├── MANIFEST.in << バンドルするファイルのリスト ├── README.txt ├── scripts << コマンド類 │ ├── commandfile ├── setup.py << 本体 └── src << ソースルート ├── packagename << Python のパッケージ ├── __init__.py ├── echo.py ├── echolist.py ├── hoge │ ├── __init__.py │ └── echo.py ├── moduledata │ ├── goodbylist │ │ └── goodbylist.txt │ ├── hellolist.txt └── tests ├── __init__.py └── echo_test.py
curl -s -o use-python https://repository-cloudbees.forge.cloudbees.com/distributions/ci-addons/python/use-python PYTHON_VERSION=2.7.2 . ./use-python # when using virtualenv, don't forget to source activate! virtualenv -q myenv source ./myenv/bin/activate easy_install sphinx ls cd gaedir/rst make html
$ mkdir mysphinx $ cd mysphinx $ git init $ git remote add origin ssh://git@bitbucket.org/{userAccount}/hoge-docs01-repo.git
$ curl -O "http://svn.zope.org/*checkout*/zc.buildout/trunk/bootstrap/bootstrap.py" $ python bootstrap.py -d init $ vim conf.py [buildout] parts = py sphinx [py] recipe = zc.recipe.egg interpreter = py eggs = bootstrap [sphinx] recipe = z3c.recipe.scripts eggs = sphinx $./bin/buildout $./bin/sphinx-quickstart
$vim app.yaml application: hoge-docs01 version: 1 runtime: python api_version: 1 handlers: - url: (.*)/ static_files: _build/html\1/index.html upload: _build/html(.*)/index.html - url: /(.*) static_files: _build/html/\1 upload: _build/html/(.*)
$vim index.rst Welcome to ccm-lulu.com's documentation! ========================================= Contents: .. toctree:: :maxdepth: 2 :numbered: doc001 doc002 Indices and tables ================== * :ref:`genindex` * :ref:`modindex` * :ref:`search` $vim doc001.rst Hoge doc ======== hoge01 ---------- - foo - bar hoge02 ----------- - barbar - foofoo
$vim .ignore bin parts eggs $ git add . $ git push origin master