UniVRM/docs
2021-10-22 20:39:14 +09:00
..
_static ScriptedImporter のメモ書き 2021-10-22 20:18:35 +09:00
_templates update po 2021-10-15 15:49:06 +09:00
gltf how_to_customize_material_import 2021-10-22 20:29:50 +09:00
implementation ScriptedImporter のメモ書き 2021-10-22 20:18:35 +09:00
locale/en/LC_MESSAGES update document 2021-10-18 18:32:15 +09:00
release update document 2021-10-18 18:32:15 +09:00
vrm0 RuntimeExporter 2021-10-22 20:39:14 +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 UniVRM-0.87.0 release note 2021-10-18 15:09:10 +09:00
conf.py ScriptedImporter のメモ書き 2021-10-22 20:18:35 +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
release_gen.py fix 2021-10-18 15:23:23 +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