Use sphinx-intl to create Chinese versions and provide automated deployment to the gh-pages branch. by xinetzone · Pull Request #1109 · realpython/python-guide · GitHub
Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/deploy.yml
5 changes: 4 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#language = None
language = 'zh_CN'

# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
Expand Down Expand Up @@ -286,3 +286,6 @@
intersphinx_mapping = {
'python': ('https://docs.python.org/3', None),
}

locale_dirs = ['../locales']
gettext_compact = False # optional.
1 change: 1 addition & 0 deletions locales/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.mo
52 changes: 52 additions & 0 deletions locales/zh_CN/LC_MESSAGES/404.po
Loading