English: ๆฅๆฌ่ช: ็ฎไฝ(ไธญๆ):
This is a project to provide mayavi official documentation with multiple versions and multiple languages on Read The Docs site.
Current procedure is tricky because Read The Docs needs a way to specify options for sphinx-build command. conf.py files for each languages have 'language' and 'locale_dirs' values without having full copy of conf.py of sphinx doc. If we want to specify conf.py file that is out of source directory, we will use '-c' option for sphinx-build command. Unfortunately, Read the Docs can't. If there are any better ways, please let me know.
-
RTD project pages for Sphinx:
-
Documentation pages for each language:
Detail is here: https://docs.readthedocs.org/en/latest/localization.html#project-with-multiple-translations
Points are:
- We must have RTD projects for each language.
- Each projects must have correct Language setting on "Settings" page.
- Master project has connections to each translated projects on "translations settings" page.
sh ./locale/update.sh
After that, you should commit to updating the PO files.
-
add language to locale/update.sh:
- rm -R ja - tx pull -l ja + rm -R ja de + tx pull -l ja,de
-
Update PO files
-
commit them
-
add a new project on Read The Docs like:
-
add translation project to parent project like: