Skip to content

Commit

Permalink
[Docs] Optimize Readthedocs page display (open-mmlab#209)
Browse files Browse the repository at this point in the history
* Adjust the logo size

* Fix the language type
  • Loading branch information
RangeKing authored and hhaAndroid committed Nov 3, 2022
1 parent b95bf63 commit 2fdbe3c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docs/en/_static/css/readthedocs.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.header-logo {
background-image: url("../image/mmyolo-logo.png");
background-size: 156px 40px;
background-size: 115px 40px;
height: 40px;
width: 156px;
width: 115px;
}
4 changes: 1 addition & 3 deletions docs/en/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def get_version():
},
],
# Specify the language of shared menu
'menu_lang': 'cn',
'menu_lang': 'en',
}

# Add any paths that contain custom static files (such as style sheets) here,
Expand All @@ -101,8 +101,6 @@ def get_version():
html_static_path = ['_static']
html_css_files = ['css/readthedocs.css']

language = 'zh_CN'

# -- Extension configuration -------------------------------------------------
# Ignore >>> when copying code
copybutton_prompt_text = r'>>> |\.\.\. '
Expand Down
4 changes: 2 additions & 2 deletions docs/zh_cn/_static/css/readthedocs.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.header-logo {
background-image: url("../image/mmyolo-logo.png");
background-size: 156px 40px;
background-size: 115px 40px;
height: 40px;
width: 156px;
width: 115px;
}

0 comments on commit 2fdbe3c

Please sign in to comment.