From 2fdbe3c4e716e3f9555cfddf01f79ad3f82b3480 Mon Sep 17 00:00:00 2001 From: Range King <RangeKingHZ@gmail.com> Date: Mon, 31 Oct 2022 14:12:02 +0800 Subject: [PATCH] [Docs] Optimize Readthedocs page display (#209) * Adjust the logo size * Fix the language type --- docs/en/_static/css/readthedocs.css | 4 ++-- docs/en/conf.py | 4 +--- docs/zh_cn/_static/css/readthedocs.css | 4 ++-- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/docs/en/_static/css/readthedocs.css b/docs/en/_static/css/readthedocs.css index 4192edac..353aa9e2 100644 --- a/docs/en/_static/css/readthedocs.css +++ b/docs/en/_static/css/readthedocs.css @@ -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; } diff --git a/docs/en/conf.py b/docs/en/conf.py index 70eb0c0e..437a257a 100644 --- a/docs/en/conf.py +++ b/docs/en/conf.py @@ -92,7 +92,7 @@ html_theme_options = { }, ], # 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, @@ -101,8 +101,6 @@ html_theme_options = { html_static_path = ['_static'] html_css_files = ['css/readthedocs.css'] -language = 'zh_CN' - # -- Extension configuration ------------------------------------------------- # Ignore >>> when copying code copybutton_prompt_text = r'>>> |\.\.\. ' diff --git a/docs/zh_cn/_static/css/readthedocs.css b/docs/zh_cn/_static/css/readthedocs.css index 4192edac..353aa9e2 100644 --- a/docs/zh_cn/_static/css/readthedocs.css +++ b/docs/zh_cn/_static/css/readthedocs.css @@ -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; }