Skip to content

Commit cd8e483

Browse files
committed
Refactor documentation configuration for ReadTheDocs
- Moved the list of supported languages directly into the `html_context` dictionary in `conf.py`. - Increased the maximum depth of the table of contents in `index.rst` from 2 to 3 for better navigation.
1 parent 8541c33 commit cd8e483

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

docs/source/conf.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,14 @@
7070
# for a list of supported languages.
7171
language = 'en'
7272

73-
# List of supported languages
74-
languages = {
75-
'en': 'English',
76-
'zh_CN': '中文',
77-
}
78-
7973
# -- Options for ReadTheDocs ------------------------------------------------
8074

8175
# ReadTheDocs specific settings
8276
html_context = {
8377
'display_language_tabs': True,
8478
'current_language': language,
85-
'languages': languages,
79+
'languages': {
80+
'en': 'English',
81+
'zh_CN': '中文',
82+
},
8683
}

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Welcome to bt-python-sdk's documentation!
77
=========================================
88

99
.. toctree::
10-
:maxdepth: 2
10+
:maxdepth: 3
1111
:caption: Contents:
1212

1313
README

0 commit comments

Comments
 (0)