From 03d1e1fcd23981557081ba23dda9b513cfe2b98d Mon Sep 17 00:00:00 2001 From: hengyunabc Date: Wed, 26 Sep 2018 15:15:57 +0800 Subject: [PATCH] fix en doc edit on github link. --- site/src/site/sphinx/_templates/breadcrumbs.html | 5 ++++- site/src/site/sphinx/en/conf.py | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/site/src/site/sphinx/_templates/breadcrumbs.html b/site/src/site/sphinx/_templates/breadcrumbs.html index cb8144835..aa4a9272f 100644 --- a/site/src/site/sphinx/_templates/breadcrumbs.html +++ b/site/src/site/sphinx/_templates/breadcrumbs.html @@ -4,4 +4,7 @@ {% set github_repo = 'arthas' %} {% set theme_vcs_pageview_mode = 'blob' %} {% set github_version = 'master' %} -{% set conf_py_path = '/site/src/site/sphinx/' %} +{% set conf_py_path = "/site/src/site/sphinx/" %} +{% if language == 'en' %} + {% set conf_py_path = "/site/src/site/sphinx/en/" %} +{% endif %} diff --git a/site/src/site/sphinx/en/conf.py b/site/src/site/sphinx/en/conf.py index 1c1cd7321..cac3ead04 100644 --- a/site/src/site/sphinx/en/conf.py +++ b/site/src/site/sphinx/en/conf.py @@ -78,7 +78,7 @@ release = version # # This is also used if you do content translation via gettext catalogs. # Usually you set "language" from the command line for these cases. -# language = u'zh_CN' +language = u'en' # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: @@ -203,7 +203,7 @@ html_static_path = ['_static'] # Sphinx supports the following languages: # 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja' # 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr' -#html_search_language = 'en' +html_search_language = 'en' # A dictionary with options for the search language support, empty by default. # Now only 'ja' uses this config value