Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2dot5
ClickHouse
提交
b4cbc520
C
ClickHouse
项目概览
2dot5
/
ClickHouse
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
ClickHouse
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b4cbc520
编写于
7月 11, 2018
作者:
I
Ivan Blinkov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Refactor and fix some javascript in docs template
上级
ccd8e950
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
78 addition
and
76 deletion
+78
-76
docs/tools/mkdocs-material-theme/base.html
docs/tools/mkdocs-material-theme/base.html
+77
-24
docs/tools/mkdocs-material-theme/partials/header.html
docs/tools/mkdocs-material-theme/partials/header.html
+1
-52
未找到文件。
docs/tools/mkdocs-material-theme/base.html
浏览文件 @
b4cbc520
...
...
@@ -211,30 +211,83 @@
{% include "partials/integrations/analytics.html" %}
{% endif %}
{% endblock %}
{% if config.extra.single_page and page.content %}
<script
type=
"text/javascript"
>
function
ready
(
callback
){
if
(
document
.
readyState
!=
'
loading
'
)
{
callback
();
}
else
if
(
document
.
addEventListener
)
{
document
.
addEventListener
(
'
DOMContentLoaded
'
,
callback
);
}
else
document
.
attachEvent
(
'
onreadystatechange
'
,
function
()
{
if
(
document
.
readyState
==
'
complete
'
)
{
callback
();
}
});
}
ready
(
function
()
{
document
.
getElementById
(
"
content
"
).
innerHTML
=
{{
page
.
content
|
tojson
|
safe
}};
document
.
getElementsByClassName
(
'
md-footer
'
)[
0
].
style
.
display
=
'
block
'
;
app
.
initialize
({
version
:
"
{{ mkdocs_version }}
"
,
url
:
{
base
:
"
{{ base_url }}
"
}
<script
type=
"text/javascript"
>
function
ready
(
callback
){
if
(
document
.
readyState
!=
'
loading
'
)
{
callback
();
}
else
if
(
document
.
addEventListener
)
{
document
.
addEventListener
(
'
DOMContentLoaded
'
,
callback
);
}
else
document
.
attachEvent
(
'
onreadystatechange
'
,
function
()
{
if
(
document
.
readyState
==
'
complete
'
)
{
callback
();
}
});
}
function
drawLanguageSwitch
()
{
var
url
,
text
,
title
;
if
(
window
.
location
.
pathname
.
indexOf
(
'
/ru/
'
)
>=
0
)
{
url
=
window
.
location
.
pathname
.
replace
(
'
/ru/
'
,
'
/en/
'
);
text
=
"
<svg xmlns=
\"
http://www.w3.org/2000/svg
\"
width=
\"
50
\"
height=
\"
30
\"
viewBox=
\"
0,0 25,15
\"
style=
\"
border:1px solid #eee;margin: .8rem 0 0 -1.25rem;
\"
>
\n
"
+
"
<rect width=
\"
25
\"
height=
\"
15
\"
fill=
\"
#00247d
\"
></rect>
\n
"
+
"
<path d=
\"
M 0,0 L 25,15 M 25,0 L 0,15
\"
stroke=
\"
#fff
\"
stroke-width=
\"
3
\"
></path>
\n
"
+
"
<path d=
\"
M 12.5,0 V 15 M 0,7.5 H 25
\"
stroke=
\"
#fff
\"
stroke-width=
\"
5
\"
></path>
\n
"
+
"
<path d=
\"
M 12.5,0 V 15 M 0,7.5 H 25
\"
stroke=
\"
#cf142b
\"
stroke-width=
\"
3
\"
></path>
\n
"
+
"
</svg>
"
;
title
=
"
Switch to English
"
}
else
{
url
=
window
.
location
.
pathname
.
replace
(
'
/en/
'
,
'
/ru/
'
);
text
=
"
<svg xmlns=
\"
http://www.w3.org/2000/svg
\"
viewBox=
\"
0 0 10 6
\"
width=
\"
50
\"
height=
\"
30
\"
style=
\"
border: 1px solid #eee;margin: .8rem 0 0 -1.25rem
\"
>
\n
"
+
"
<rect fill=
\"
#fff
\"
width=
\"
10
\"
height=
\"
3
\"
></rect>
\n
"
+
"
<rect fill=
\"
#d52b1e
\"
y=
\"
3
\"
width=
\"
10
\"
height=
\"
3
\"
></rect>
\n
"
+
"
<rect fill=
\"
#0039a6
\"
y=
\"
2
\"
width=
\"
10
\"
height=
\"
2
\"
></rect>
\n
"
+
"
</svg>
"
;
title
=
"
Переключить на русский язык
"
}
document
.
getElementById
(
"
md-language-switch
"
).
innerHTML
=
'
<a href="
'
+
url
+
'
" title="
'
+
title
+
'
" class="md-flex__ellipsis md-header-nav__title">
'
+
text
+
'
</a>
'
;
}
ready
(
function
()
{
{
%
if
config
.
extra
.
single_page
and
page
.
content
%
}
document
.
getElementById
(
"
content
"
).
innerHTML
=
{{
page
.
content
|
tojson
|
safe
}};
document
.
getElementsByClassName
(
'
md-footer
'
)[
0
].
style
.
display
=
'
block
'
;
{
%
endif
%
}
drawLanguageSwitch
();
app
.
initialize
({
version
:
"
{{ mkdocs_version }}
"
,
url
:
{
base
:
"
{{ base_url }}
"
}
});
});
</script>
<!-- Yandex.Metrika counter -->
<script
type=
"text/javascript"
>
(
function
(
d
,
w
,
c
)
{
(
w
[
c
]
=
w
[
c
]
||
[]).
push
(
function
()
{
try
{
w
.
yaCounter18343495
=
new
Ya
.
Metrika2
({
id
:
18343495
,
clickmap
:
true
,
trackLinks
:
true
,
accurateTrackBounce
:
true
,
webvisor
:
{
%
if
builder
!=
"
singlehtml
"
%
}
true
{
%
else
%
}
false
{
%
endif
%
}
});
}
catch
(
e
)
{
}
});
});
</script>
{% endif %}
var
n
=
d
.
getElementsByTagName
(
"
script
"
)[
0
],
s
=
d
.
createElement
(
"
script
"
),
f
=
function
()
{
n
.
parentNode
.
insertBefore
(
s
,
n
);
};
s
.
type
=
"
text/javascript
"
;
s
.
async
=
true
;
s
.
src
=
"
https://mc.yandex.ru/metrika/tag.js
"
;
if
(
w
.
opera
==
"
[object Opera]
"
)
{
d
.
addEventListener
(
"
DOMContentLoaded
"
,
f
,
false
);
}
else
{
f
();
}
})(
document
,
window
,
"
yandex_metrika_callbacks2
"
);
</script>
<noscript>
<div><img
src=
"https://mc.yandex.ru/watch/18343495"
style=
"position:absolute; left:-9999px;"
alt=
""
/></div>
</noscript>
<!-- /Yandex.Metrika counter -->
</body>
</html>
docs/tools/mkdocs-material-theme/partials/header.html
浏览文件 @
b4cbc520
<header
class=
"md-header"
data-md-component=
"header"
>
<!-- Yandex.Metrika counter -->
<script
type=
"text/javascript"
>
(
function
(
d
,
w
,
c
)
{
(
w
[
c
]
=
w
[
c
]
||
[]).
push
(
function
()
{
try
{
w
.
yaCounter18343495
=
new
Ya
.
Metrika2
({
id
:
18343495
,
clickmap
:
true
,
trackLinks
:
true
,
accurateTrackBounce
:
true
,
webvisor
:
{
%
if
builder
!=
"
singlehtml
"
%
}
true
{
%
else
%
}
false
{
%
endif
%
}
});
}
catch
(
e
)
{
}
});
var
n
=
d
.
getElementsByTagName
(
"
script
"
)[
0
],
s
=
d
.
createElement
(
"
script
"
),
f
=
function
()
{
n
.
parentNode
.
insertBefore
(
s
,
n
);
};
s
.
type
=
"
text/javascript
"
;
s
.
async
=
true
;
s
.
src
=
"
https://mc.yandex.ru/metrika/tag.js
"
;
if
(
w
.
opera
==
"
[object Opera]
"
)
{
d
.
addEventListener
(
"
DOMContentLoaded
"
,
f
,
false
);
}
else
{
f
();
}
})(
document
,
window
,
"
yandex_metrika_callbacks2
"
);
</script>
<noscript>
<div><img
src=
"https://mc.yandex.ru/watch/18343495"
style=
"position:absolute; left:-9999px;"
alt=
""
/></div>
</noscript>
<!-- /Yandex.Metrika counter -->
<nav
class=
"md-header-nav md-grid"
>
<div
class=
"md-flex"
>
<div
class=
"md-flex__cell md-flex__cell--shrink"
>
...
...
@@ -72,28 +42,7 @@
</div>
{% if config.repo_url %}
<div
class=
"md-flex__cell md-flex__cell--shrink"
>
<div
class=
"md-header-nav__source"
>
<script
type=
"text/javascript"
>
if
(
window
.
location
.
pathname
.
indexOf
(
'
/ru/
'
)
>=
0
)
{
url
=
window
.
location
.
pathname
.
replace
(
'
/ru/
'
,
'
/en/
'
);
text
=
"
<svg xmlns=
\"
http://www.w3.org/2000/svg
\"
width=
\"
50
\"
height=
\"
30
\"
viewBox=
\"
0,0 25,15
\"
style=
\"
border:1px solid #eee;margin: .8rem 0 0 -1.25rem;
\"
>
\n
"
+
"
<rect width=
\"
25
\"
height=
\"
15
\"
fill=
\"
#00247d
\"
></rect>
\n
"
+
"
<path d=
\"
M 0,0 L 25,15 M 25,0 L 0,15
\"
stroke=
\"
#fff
\"
stroke-width=
\"
3
\"
></path>
\n
"
+
"
<path d=
\"
M 12.5,0 V 15 M 0,7.5 H 25
\"
stroke=
\"
#fff
\"
stroke-width=
\"
5
\"
></path>
\n
"
+
"
<path d=
\"
M 12.5,0 V 15 M 0,7.5 H 25
\"
stroke=
\"
#cf142b
\"
stroke-width=
\"
3
\"
></path>
\n
"
+
"
</svg>
"
;
title
=
"
Switch to English
"
}
else
{
url
=
window
.
location
.
pathname
.
replace
(
'
/en/
'
,
'
/ru/
'
);
text
=
"
<svg xmlns=
\"
http://www.w3.org/2000/svg
\"
viewBox=
\"
0 0 10 6
\"
width=
\"
50
\"
height=
\"
30
\"
style=
\"
border: 1px solid #eee;margin: .8rem 0 0 -1.25rem
\"
>
\n
"
+
"
<rect fill=
\"
#fff
\"
width=
\"
10
\"
height=
\"
3
\"
></rect>
\n
"
+
"
<rect fill=
\"
#d52b1e
\"
y=
\"
3
\"
width=
\"
10
\"
height=
\"
3
\"
></rect>
\n
"
+
"
<rect fill=
\"
#0039a6
\"
y=
\"
2
\"
width=
\"
10
\"
height=
\"
2
\"
></rect>
\n
"
+
"
</svg>
"
;
title
=
"
Переключить на русский язык
"
}
document
.
write
(
'
<a href="
'
+
url
+
'
" title="
'
+
title
+
'
" class="md-flex__ellipsis md-header-nav__title">
'
+
text
+
'
</a>
'
)
</script>
<div
id=
"md-language-switch"
class=
"md-header-nav__source"
>
</div>
</div>
{% endif %}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录