Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ColossalAI
Commits
2b05de4c
Unverified
Commit
2b05de4c
authored
Nov 15, 2021
by
ver217
Committed by
GitHub
Nov 15, 2021
Browse files
use env to control the language of doc (#24) (#25)
parent
9942fd5b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
26 deletions
+28
-26
docs/conf.py
docs/conf.py
+2
-0
docs/index.rst
docs/index.rst
+13
-13
docs/index_zh.rst
docs/index_zh.rst
+13
-13
No files found.
docs/conf.py
View file @
2b05de4c
...
...
@@ -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
...
...
docs/index.rst
View file @
2b05de4c
...
...
@@ -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
...
...
docs/index_
en
.rst
→
docs/index_
zh
.rst
View file @
2b05de4c
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment