Skip to content

Commit 9f9f39f

Browse files
committed
Refactor language settings in documentation configuration
- Removed redundant language variable from `conf.py` and directly set 'en' in `html_context`. - Cleaned up comments related to language options for clarity.
1 parent cd8e483 commit 9f9f39f

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

docs/source/conf.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,6 @@
3939
# Add any paths that contain templates here, relative to this directory.
4040
templates_path = ['_templates']
4141

42-
# The language for content autogenerated by Sphinx. Refer to documentation
43-
# for a list of supported languages.
44-
#
45-
# This is also used if you do content translation via gettext catalogs.
46-
# Usually you set "language" from the command line for these cases.
47-
language = 'en'
4842

4943
# List of patterns, relative to source directory, that match files and
5044
# directories to ignore when looking for source files.
@@ -64,18 +58,12 @@
6458
# so a file named "default.css" will overwrite the builtin "default.css".
6559
html_static_path = ['_static']
6660

67-
# -- Options for internationalization ----------------------------------------
68-
69-
# The language for content autogenerated by Sphinx. Refer to documentation
70-
# for a list of supported languages.
71-
language = 'en'
72-
7361
# -- Options for ReadTheDocs ------------------------------------------------
7462

7563
# ReadTheDocs specific settings
7664
html_context = {
7765
'display_language_tabs': True,
78-
'current_language': language,
66+
'current_language': 'en',
7967
'languages': {
8068
'en': 'English',
8169
'zh_CN': '中文',

0 commit comments

Comments
 (0)