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

This commit is contained in:
ver217
2021-11-15 16:53:56 +08:00
committed by GitHub
parent 9942fd5bfa
commit 2b05de4c64
3 changed files with 26 additions and 24 deletions

View File

@@ -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