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.'
# The full version, including alpha/beta/rc tags
release = '0.0.1'
if 'SPHINX_LANG' in os.environ:
root_doc = f'index_{os.environ["SPHINX_LANG"]}'
# -- General configuration ---------------------------------------------------
# Add any Sphinx extension module names here, as strings. They can be
......
......@@ -3,27 +3,27 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
夸父AI系统(Colossal-AI)开发文档
Colossal-AI documentation
======================================
.. toctree::
:maxdepth: 1
:caption: 快速上手指南
:caption: GETTING STARTED
installation_zh.md
run_demo_zh.md
installation.md
run_demo.md
.. toctree::
:maxdepth: 1
:caption: 个性化您的训练
parallelization_zh.md
model_zh.md
trainer_engine_zh.md
amp_zh.md
zero_zh.md
add_your_parallel_zh.md
config_zh.md
:caption: CUSTOMIZE YOUR TRAINING
parallelization.md
model.md
trainer_engine.md
amp.md
zero.md
add_your_parallel.md
config.md
......
......@@ -3,27 +3,27 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Colossal-AI documentation
夸父AI系统(Colossal-AI)开发文档
======================================
.. toctree::
:maxdepth: 1
:caption: GETTING STARTED
:caption: 快速上手指南
installation.md
run_demo.md
installation_zh.md
run_demo_zh.md
.. toctree::
:maxdepth: 1
:caption: CUSTOMIZE YOUR TRAINING
parallelization.md
model.md
trainer_engine.md
amp.md
zero.md
add_your_parallel.md
config.md
:caption: 个性化您的训练
parallelization_zh.md
model_zh.md
trainer_engine_zh.md
amp_zh.md
zero_zh.md
add_your_parallel_zh.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