UniVRM/docs
2021-10-13 18:54:06 +09:00
..
_templates rtdテンプレート向けの言語スイッチリンク 2021-10-13 18:54:06 +09:00
gltf read the docs テンプレート向けに整理 2021-10-13 15:52:03 +09:00
implementation read the docs テンプレート向けに整理 2021-10-13 15:52:03 +09:00
locale/en/LC_MESSAGES update 2021-10-13 18:29:28 +09:00
release read the docs テンプレート向けに整理 2021-10-13 15:52:03 +09:00
vrm0 read the docs テンプレート向けに整理 2021-10-13 15:52:03 +09:00
vrm1 read the docs テンプレート向けに整理 2021-10-13 15:52:03 +09:00
.gitignore update po 2021-09-14 16:12:59 +09:00
build.md read the docs テンプレート向けに整理 2021-10-13 15:52:03 +09:00
chloggen.py release note 2021-10-11 16:49:22 +09:00
conf.py rtd 2021-10-13 15:00:07 +09:00
index.html update po 2021-09-14 16:12:59 +09:00
index.md read the docs テンプレート向けに整理 2021-10-13 15:52:03 +09:00
README.md update po 2021-10-13 14:20:47 +09:00

Sphinx 作業

初期化

$ pip install sphinx
$ mkdir docs
$ cd docs
docs$ sphinx-quickstart

docs/_build/ja に日本語ドキュメントを出力する

doc$ sphinx-build . _build/ja

MySt 導入

markdown で記事を記述する

$ pip install --upgrade myst-parser

conf.py

extensions = ['myst_parser']

gettext 導入

$ pip install sphinx-intl

conf.py

locale_dirs = ['locale/']
gettext_compact = False

gettext 更新

potファイル作成

doc$ sphinx-build -M gettext . _pot
# => _pot/gettext

poファイルを作成

doc$ sphinx-intl update -p _pot/gettext -l en
# => locale/en

ロケールを使ってサイトビルド

doc$ sphinx-build . _build/en -D language=en