名前の通り、ドキュメント作成ツールの Sphinx の Docker Compose 用のテンプレートです。
たぶん動いています。
MIT
Clone or DownloadからZIPをダウンロード- ZIPを解凍
- (必要があれば) Dockerfile を変更
- (必要があれば) docker-compose.yml を変更
- (必要があれば) plantuml をインストール
- documents/source/conf.py を変更
- rstを記述する
githubの Clone or Download ボタンを押し、 Download ZIP を押す。
してください。
必要があれば変更してくだいさい。
npmが手軽に欲しかったため、nodeイメージをベースにしています。
※ nodeイメージはdebianのようです。
※ python3-sphinx ではうまくビルドができなかったのでpip3のsphinxパッケージを使っています。
必要があれば変更してくだいさい。
plantumlをドキュメント内で利用したい場合は公式から取得してください。
※ plantuml.jar の保存された場所は把握しておいてください。
ドキュメントの設定を行う conf.py を編集します。
細かい設定は Sphinx の公式を参照してください。
- project = 'Sphinx-docker-template'
- ドキュメントのタイトルへ変更します。
- copyright = 'art'
- コピーライトへ変更します。
- author = 'art'
- 記述者へ変更します。
- version = '0.0.0'
- ドキュメントバージョンへ随時変更します。
- release = '0.0.0'
- ドキュメントバージョンへ随時変更します。
#'sphinxcontrib.plantuml',- plantumlを利用する場合は、先頭の
#を取り除きます。
- plantumlを利用する場合は、先頭の
- plantuml_path = os.path.abspath('../extensions/plantuml.jar')
- plantumlを利用する場合は、
plantuml.jarのパスへ変更します。
documents/extensionsフォルダへ配置した場合は変更は不要です。
- plantumlを利用する場合は、
好きなようにrstを記述してください。
uiflow用の拡張を適当に作って含めています。
.. uiflow:: ファイル名と記述することで使えます。
ファイルを用意しない以下のような形には対応させていません。
.. uiflow::
これはうごきません。Machine translation. Is this English correct?
- Download ZIP from
Clone or Download - Uncompress the ZIP
- (if necessary) Change Dockerfile
- (if necessary) Change docker-compose.yml
- (if necessary) Install plantuml
- Change documents/source/conf.py
- Just as you like write rst
Press Clone or Download in this github page and Press Download ZIP.
Do it.
If necessary, you change it.
This Image is from the node image. Cuz I need npm easily.
If necessary, you change it.
If you will use plantuml in sphinx, you get plantuml from offical site. ※ Do not forget installed-path.
Change conf.py.
If you want to know details of setting, you look sphinx offical site.
- project = 'Sphinx-docker-template'
- Modify document title
- copyright = 'art'
- author = 'art'
- version = '0.0.0'
- Keep document version it updated.
- release = '0.0.0'
- Keep document version it updated.
#'sphinxcontrib.plantuml',- if use plantuml, remove
#.
- if use plantuml, remove
- plantuml_path = os.path.abspath('../extensions/plantuml.jar')
- if use plantuml, change to installed-path of
plantuml.jar
if installed todocuments/extensions, you do not it.
- if use plantuml, change to installed-path of
Just as you like.