-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
47e0ca4
commit 92f0637
Showing
2 changed files
with
166 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,159 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
|
||
<!-- 白天、夜间模式切换 --> | ||
<!-- stylesheets --> | ||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/dark.css" disabled> | ||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css" > | ||
|
||
<meta charset="UTF-8"> | ||
<meta name="baidu-site-verification" content="codeva-OmVvLISv9o" /> | ||
<title>四川师范大学飞跃手册</title> | ||
<!-- 如果要走301重定向的跳转方式 --> | ||
<!-- <meta http-equiv="refresh" content="0; url=https://www.sicnuwiki.com"> --> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | ||
<meta name="description" content="Description"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0"> | ||
|
||
<!-- 默认样式 --> | ||
<!-- <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css"> --> | ||
<link rel="shortcut icon" href="src/sicnu校徽.png" /> | ||
<!-- 设置上下页跳转字体大小 --> | ||
<style> | ||
.pagination-item-title { | ||
font-size: 1em !important; | ||
} | ||
body { | ||
font-size: 17px; | ||
line-height: 1.2; /* 可根据需要调整行间距的大小 */ | ||
} | ||
</style> | ||
|
||
|
||
</head> | ||
<body> | ||
<div id="app"></div> | ||
<script> | ||
window.$docsify = { | ||
// 上下页跳转 | ||
pagination: { | ||
previousText: '上一章节', | ||
nextText: { | ||
'/en/': 'NEXT', | ||
'/': '下一章节' | ||
}, | ||
crossChapter: true, | ||
crossChapterText: true, | ||
}, | ||
// 字数统计设置 | ||
count:{ | ||
countable: true, | ||
position: 'top', | ||
fontsize:'1em', | ||
}, | ||
//颜色管理插件 | ||
switchLightDarkMode: { | ||
useSwitchMode: true, | ||
top: 130, | ||
right: 26, | ||
svgColor: '#7d7b75', | ||
}, | ||
name: '' | ||
,repo: '' | ||
// ,repo: 'https://github.com/SICNU-Application/wiki-SICNU' | ||
// load DIY SideBar | ||
,loadSidebar: true | ||
//设置侧边栏的目录名作为正文的标题 | ||
,autoHeader: true | ||
//侧边栏顶部标题 | ||
,name: '飞跃手册-川师大' | ||
// load DIY Cover | ||
,coverpage: true | ||
//仅加载一次封面 | ||
,onlyCover:true | ||
//切换页面后是否自动跳转到页面顶部 | ||
,auto2top: true | ||
, //全文搜索 | ||
search: { | ||
maxAge: 86400000, // 过期时间,单位毫秒,默认一天 | ||
paths: 'auto', | ||
placeholder: '搜索你想要的...', | ||
noData: '找不到结果', | ||
// 搜索标题的最大程级, 1 - 6 | ||
depth: 3, | ||
} | ||
// 添加最后更新日期功能。https://github.com/rxmapple/docsify-last-modified | ||
,lastModified:{ | ||
repo:'SICNU-Application/wiki-SICNU' | ||
,basePath: 'docs/' | ||
,preString: "最后更新: " | ||
,dateFormat: "{YYYY} 年 {MM} 月 {DD} 日" | ||
,align:'right' | ||
}, | ||
}; | ||
</script> | ||
|
||
<!-- 评论插件 --> | ||
<link rel="stylesheet" href="//unpkg.com/gitalk/dist/gitalk.css"> | ||
<script src="//unpkg.com/docsify/lib/plugins/gitalk.min.js"></script> | ||
<script src="//unpkg.com/gitalk/dist/gitalk.min.js"></script> | ||
<!-- 新增md5.min.js --> | ||
<script src="./src/_assert/md5.min.js"></script> | ||
<script> | ||
category_name = location.hash.match(/#(.*?)([?]|$)/) | ||
if(category_name != null){ | ||
category_name = location.hash.match(/#(.*?)([?]|$)/)[1] | ||
} | ||
// 限制 50 个字符 | ||
if (category_name != null) { | ||
category_name = decodeURI(category_name.substring(1, category_name.length)) | ||
if (category_name.length >= 50) { | ||
category_name = category_name.substring(category_name.length - 50, category_name.length) | ||
} | ||
} else { | ||
category_name = 'home page' | ||
} | ||
const gitalk = new Gitalk({ | ||
clientID: 'f5c6494823927f00d9db', | ||
clientSecret: '6c3556208ed01592ec10f0f5056408200b9d0f88', | ||
repo: 'wiki-SICNU-Comment', | ||
owner: 'Ronchy2000', | ||
admin: ['Ronchy2000'], | ||
distractionFreeMode: false, | ||
title: category_name, | ||
id:category_name, | ||
}) | ||
// 监听URL中hash的变化,如果发现换了一个MD文件,那么刷新页面,解决整个网站使用一个gitalk评论issues的问题。 | ||
// window.onhashchange = function(event){ | ||
// if(event.newURL.split('?')[0] !== event.oldURL.split('?')[0]){ | ||
// location.reload() | ||
// } | ||
// } | ||
</script> | ||
|
||
<!-- 不蒜子-访问量统计 --> | ||
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script> | ||
<!-- 不蒜子初始化 --> | ||
|
||
<!-- Docsify v4 --> | ||
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script> | ||
<!--全文搜索,直接用官方提供的无法生效--> | ||
<script src="https://cdn.bootcss.com/docsify/4.5.9/plugins/search.min.js"></script> | ||
<!-- 图片缩放 --> | ||
<script src="//unpkg.com/docsify/lib/plugins/zoom-image.js"></script> | ||
<!-- 字数统计 --> | ||
<script src="//unpkg.com/docsify-count/dist/countable.js"></script> | ||
<!-- 表情插件 --> | ||
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/emoji.min.js"></script> | ||
<!-- docsify-updated --> | ||
<script src="//cdn.jsdelivr.net/npm/[email protected]/dist/tinydate.min.js"></script> | ||
<script src="./src/_assert/docsify-last-modified.js"></script> | ||
<!-- docsify-simple-dark-mode plugin --> | ||
<script src="https://cdn.jsdelivr.net/gh/pikapikapikaori/docsify-simple-dark-mode@latest/src/switchLightDarkMode.js"></script> | ||
<!-- 上下章节跳转 --> | ||
<script src="//unpkg.com/docsify-pagination/dist/docsify-pagination.min.js"></script> | ||
<!-- 返回顶部 --> | ||
<script src="https://cdn.jsdelivr.net/gh/Sumsung524/docsify-backTop/dist/docsify-backTop.min.js"></script> | ||
</body> | ||
</html> |