fix translate and style

This commit is contained in:
liuboaibc 2020-09-10 16:39:03 +08:00
parent 530e6bb2d7
commit 12344340ee
4 changed files with 12 additions and 8 deletions

View File

@ -194,11 +194,11 @@
padding-left: 2em;
}
.md-body ul li {
.md-body ul > li {
list-style: disc;
}
.md-body ol li {
.md-body ol > li {
list-style: decimal;
}

View File

@ -78,7 +78,7 @@
translation: Info
- id: warning
translation: Warning
- id: Enter keywords to get help quickly
translation: Enter keywords to get help quickly
- id: Search Documentation
translation: Search Documentation

View File

@ -78,5 +78,5 @@
translation: 信息
- id: warning
translation: 警告
- id: Enter keywords to get help quickly
translation: 输入关键字快速获取帮助
- id: Search Documentation
translation: 搜索文档

View File

@ -1,5 +1,5 @@
<div class="search-input-div">
<input id="search" type="text" placeholder="{{i18n "Enter keywords to get help quickly"}}">
<input id="search" type="text" placeholder="{{i18n "Search Documentation"}}">
<svg width="1em" height="1em" viewBox="0 0 18 18">
<g fill="none" fill-rule="evenodd">
<path d="M12.606 11.192l5.24 5.24-1.415 1.414-5.239-5.24a7.041 7.041 0 0 0 1.414-1.414z" fill="#324558"></path>
@ -18,7 +18,11 @@ docsearch({
transformData: function(hits) {
hits.forEach(hit => {
if (typeof window !== undefined) {
hit.url = hit.url.replace('kubesphere.io', window.location.host)
var host = window.location.host
if (host == 'kubesphere.com.cn' && language == 'en') {
host = host + '/en'
}
hit.url = hit.url.replace('kubesphere.io', host)
}
})
return hits