bhikkhu-kosalla-china 3 년 전
부모
커밋
e4f96ed5ad
3개의 변경된 파일35개의 추가작업 그리고 6개의 파일을 삭제
  1. 21 2
      book.toml
  2. 9 0
      theme/css/print.css
  3. 5 4
      theme/index.hbs

+ 21 - 2
book.toml

@@ -9,9 +9,28 @@ title = "教理部口袋书"
 git-repository-url = "https://gitee.com/jinghong-dajin-pagoda/fofazhishi.git"
 git-repository-icon = "fa-git"
 
-additional-js = ["theme/myjs/mermaid.min.js", "theme/myjs/mermaid-init.js","theme/myjs/jquery-1.12.3.min.js","theme/myjs/lrc.js","theme/myjs/nosleep.js","theme/myjs/social-share.min.js","theme/myplugin/layer/layer.js","theme/myplugin/pagetoc/sidebar.js"]
+additional-js = [
+	"theme/myjs/mermaid.min.js",
+	"theme/myjs/mermaid-init.js",
+	"theme/myjs/jquery-1.12.3.min.js",
+	"theme/myjs/lrc.js",
+	"theme/myjs/nosleep.js",
+	"theme/myjs/social-share.min.js",
+	"theme/myplugin/layer/layer.js",
+	"theme/myplugin/pagetoc/sidebar.js"
+	]
 mathjax-support = true
-additional-css = ["theme/fonts/tai-tham-kh-new-v3.ttf","theme/mycss/font.css","theme/mycss/lrc.css","theme/mycss/share.min.css","theme/fonts/iconfont.ttf","theme/fonts/iconfont.woff","theme/myplugin/layer/theme/default/layer.css","theme/myplugin/layer/theme/default/icon.png","theme/myplugin/pagetoc/style.css"] 
+additional-css = [
+	"theme/fonts/tai-tham-kh-new-v3.ttf",
+	"theme/mycss/font.css",
+	"theme/mycss/lrc.css",
+	"theme/mycss/share.min.css",
+	"theme/fonts/iconfont.ttf",
+	"theme/fonts/iconfont.woff",
+	"theme/myplugin/layer/theme/default/layer.css",
+	"theme/myplugin/layer/theme/default/icon.png",
+	"theme/myplugin/pagetoc/style.css"
+	] 
 default-theme = "all"
 [output.html.fold]
 enable = true

+ 9 - 0
theme/css/print.css

@@ -52,3 +52,12 @@ pre, code {
 .fa {
     display: none !important;
 }
+#btn-showsidebar{
+    display: none !important;
+}
+#lyriccontainer{
+    display: none !important;
+}
+.social-share{
+    display: none !important;
+}

+ 5 - 4
theme/index.hbs

@@ -219,6 +219,7 @@
                 {{/next}}
             </nav>
         </div>
+		<div style="height:50vh"></div>
 
         {{#if livereload}}
         <!-- Livereload script (if served using the cli tool) -->
@@ -322,15 +323,15 @@
 		}
 		var popTocIndex=-1;
 		function openToc(){
-			if(sidebar=='visible'){
-				$(".sidetoc").toggle();
-			}else{
+			//if(sidebar=='visible'){
+			//	$(".sidetoc").toggle();
+			//}else{
 				popTocIndex=layer.open({
 				  type: 1,
 				  title: false,
 				  content: $('#pop-sidebar') 
 				});
-			}
+			//}
 		}
 		</script>
     </body>