Unverified Commit 2b05de4c authored by ver217's avatar ver217 Committed by GitHub
Browse files

use env to control the language of doc (#24) (#25)

parent 9942fd5b
...@@ -24,6 +24,8 @@ author = 'HPC-AI Technology Inc.' ...@@ -24,6 +24,8 @@ author = 'HPC-AI Technology Inc.'
# The full version, including alpha/beta/rc tags # The full version, including alpha/beta/rc tags
release = '0.0.1' release = '0.0.1'
if 'SPHINX_LANG' in os.environ:
root_doc = f'index_{os.environ["SPHINX_LANG"]}'
# -- General configuration --------------------------------------------------- # -- General configuration ---------------------------------------------------
# Add any Sphinx extension module names here, as strings. They can be # Add any Sphinx extension module names here, as strings. They can be
......
...@@ -3,27 +3,27 @@ ...@@ -3,27 +3,27 @@
You can adapt this file completely to your liking, but it should at least You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive. contain the root `toctree` directive.
夸父AI系统(Colossal-AI)开发文档 Colossal-AI documentation
====================================== ======================================
.. toctree:: .. toctree::
:maxdepth: 1 :maxdepth: 1
:caption: 快速上手指南 :caption: GETTING STARTED
installation_zh.md installation.md
run_demo_zh.md run_demo.md
.. toctree:: .. toctree::
:maxdepth: 1 :maxdepth: 1
:caption: 个性化您的训练 :caption: CUSTOMIZE YOUR TRAINING
parallelization_zh.md parallelization.md
model_zh.md model.md
trainer_engine_zh.md trainer_engine.md
amp_zh.md amp.md
zero_zh.md zero.md
add_your_parallel_zh.md add_your_parallel.md
config_zh.md config.md
......
...@@ -3,27 +3,27 @@ ...@@ -3,27 +3,27 @@
You can adapt this file completely to your liking, but it should at least You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive. contain the root `toctree` directive.
Colossal-AI documentation 夸父AI系统(Colossal-AI)开发文档
====================================== ======================================
.. toctree:: .. toctree::
:maxdepth: 1 :maxdepth: 1
:caption: GETTING STARTED :caption: 快速上手指南
installation.md installation_zh.md
run_demo.md run_demo_zh.md
.. toctree:: .. toctree::
:maxdepth: 1 :maxdepth: 1
:caption: CUSTOMIZE YOUR TRAINING :caption: 个性化您的训练
parallelization.md parallelization_zh.md
model.md model_zh.md
trainer_engine.md trainer_engine_zh.md
amp.md amp_zh.md
zero.md zero_zh.md
add_your_parallel.md add_your_parallel_zh.md
config.md config_zh.md
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment