mirror of
https://github.com/kubesphere/website.git
synced 2025-12-26 00:12:48 +00:00
fix translate and style
This commit is contained in:
parent
530e6bb2d7
commit
12344340ee
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -78,5 +78,5 @@
|
|||
translation: 信息
|
||||
- id: warning
|
||||
translation: 警告
|
||||
- id: Enter keywords to get help quickly
|
||||
translation: 输入关键字快速获取帮助
|
||||
- id: Search Documentation
|
||||
translation: 搜索文档
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue