LoginSignup
1
1

More than 5 years have passed since last update.

Sphinxドキュメントをコンパイルする Wercker step

Posted at

概要

ちょろっと調べた限り良さそうなものが無かったので,
SphinxドキュメントをコンパイルするWercker step jkawamoto/sphinxを作った.

使い方

jkawamoto/sphinx step の実行には,pip が必要です.wercker.ymlsteps

- install-packages:
    packages: python-pip

を追加するか,box に jkawamoto/ghp-box を使ってください.

jkawamoto/sphinx step には,次のオプションがあります.

  • target: make コマンドのターゲット (デフォルトは html).
  • basedir: Makefile があるディレクトリのパス.
  • packages: 空白区切の Sphinx の実行に必要な PyPi パッケージリスト.使用するテーマなどを渡す.
  • options: make コマンドに渡すオプション引数.

なお,リポジトリに requirements.txt が含まれている場合,
自動で pip install -r requirements.txt するので,
依存ライブラリを packages に含める必要はありません.

dsargparse で実際に使用している例は次の通り.

wercker.yml
box: jkawamoto/ghp-box
build:
  steps:
    - jkawamoto/sphinx:
        basedir: docs
        packages: sphinx_rtd_theme
deploy:
  steps:
    - jkawamoto/ghp-import:
        token: $GIT_TOKEN
        basedir: docs/build/html
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1