2

既に完成したフラスコ Web アプリケーションに Sphinx ドキュメントを実装しようとしています。次のコマンドを使用してSphinxを実行しようとすると:

sphinx-apidoc -F -A "MonitoringApplication" -V "0.1" -o docs App

私のpythonスクリプトの最初のファイルを作成しますが、次のエラーで終了します:Sphinx\quickstart.py, line 1328, in generate conf_text = QUICKSTART_CONF % d KeyError: u'language

このエラーに関する Google はあまり役に立たなかったので、ここに来ました。追加情報:

Sphinx バージョン 1.3b1-py2.7、OS: Windows 7、仮想環境 (venv) で動作する Sphinx

プロジェクト ディレクトリの例:

App/
  --MoitoringApplication.py
  --models.py
  --database.py
  --functions.py
  --etc.py
  templates/
    --index.html
    --overview.html
    --etc.html
  static/
    --jquery.js
    --etc.js
    images/
      --logo.jpg

Sphinx-apidoc コマンドを実行すると、次のディレクトリが構築されました。

docs/
  _build/
    ..
  _static/
    ..
  _templates/
    ..
  --MonitoringApplication.rst
  --functions.rst
  --models.rst
  --database.rst
  --etc.rst

間違ったコマンドを使用していますか、ディレクトリの順序が間違っていますか、それとも必要な別の Sphinx バージョンですか? 御時間ありがとうございます。

4

2 に答える 2