Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
website
提交
7949d2ff
W
website
项目概览
openeuler
/
website
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
W
website
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7949d2ff
编写于
8月 31, 2019
作者:
E
edisonxiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add treeview for docs
上级
80139541
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
23 addition
and
1 deletion
+23
-1
themes/project/layouts/partials/docs/html-head.html
themes/project/layouts/partials/docs/html-head.html
+2
-0
themes/project/layouts/partials/docs/menu.html
themes/project/layouts/partials/docs/menu.html
+2
-0
themes/project/layouts/partials/scripts.html
themes/project/layouts/partials/scripts.html
+13
-0
themes/project/static/css/custom.css
themes/project/static/css/custom.css
+6
-1
未找到文件。
themes/project/layouts/partials/docs/html-head.html
浏览文件 @
7949d2ff
...
...
@@ -23,3 +23,5 @@
Made with Book Theme
https://github.com/alex-shpak/hugo-book
{{ "-->
" | safeHTML }}
<link
rel=
"stylesheet"
href=
"//cdnjs.cloudflare.com/ajax/libs/jstree/3.3.4/themes/default/style.min.css"
/>
themes/project/layouts/partials/docs/menu.html
浏览文件 @
7949d2ff
...
...
@@ -3,7 +3,9 @@
{{ partial "docs/inject/menu-before" . }}
{{ if .Site.Params.BookMenuBundle }}
<div
id=
"docstreeview"
>
{{ partial "docs/menu-bundle" . }}
</div>
{{ else }}
{{ partial "docs/menu-filetree" . }}
{{ end }}
...
...
themes/project/layouts/partials/scripts.html
浏览文件 @
7949d2ff
{{ template "_internal/google_analytics.html" . }}
<script
src=
"//code.jquery.com/jquery-3.1.1.min.js"
integrity=
"sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
crossorigin=
"anonymous"
></script>
<script
src=
"//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"
integrity=
"sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
crossorigin=
"anonymous"
></script>
<script
src=
"//cdnjs.cloudflare.com/ajax/libs/jstree/3.3.4/jstree.min.js"
></script>
<script
src=
"//cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js"
></script>
<script
src=
"//cdnjs.cloudflare.com/ajax/libs/waypoints/4.0.1/jquery.waypoints.min.js"
></script>
...
...
@@ -17,3 +18,15 @@
<!-- owl carousel -->
<script
src=
"{{ .Site.BaseURL }}js/owl.carousel.min.js"
></script>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
(){
$
(
'
#docstreeview
'
).
jstree
();
$
(
'
#docstreeview
'
).
jstree
().
open_all
();
$
(
'
#docstreeview
'
).
jstree
().
hide_dots
();
$
(
'
#docstreeview
'
).
jstree
().
hide_icons
();
$
(
'
#docstreeview
'
).
on
(
"
changed.jstree
"
,
function
(
e
,
data
)
{
location
.
href
=
data
.
node
.
a_attr
.
href
;
});
});
</script>
themes/project/static/css/custom.css
浏览文件 @
7949d2ff
...
...
@@ -348,7 +348,12 @@ footer .notice span {
}
#error-page
.box
{
margin-top
:
60px
;
margin-top
:
148px
;
margin-bottom
:
148px
;
}
.jstree-default
.jstree-anchor
{
height
:
35px
!important
;
}
html
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录