From 17fadba73908d19291a391fbc86cb10a5a004a9d Mon Sep 17 00:00:00 2001 From: Wcowin <1135801806@qq.com> Date: Mon, 22 Jul 2024 00:04:09 +0800 Subject: [PATCH] 7/22 --- .../plugin/git-committers/page-authors.json | 2 +- docs/ZH-TW/index.md | 232 +++++++++++++++++ docs/about/geren.md | 2 +- docs/about/link.md | 187 +++++++++++--- docs/blog/Mkdocs/mkdocs1.md | 2 +- docs/blog/posts/update2024.md | 91 +++++++ docs/blog/websitebeauty/mkdocsfont.md | 5 +- docs/en/index.md | 233 ++++++++++++++++++ docs/index.md | 6 +- docs/liuyanban.md | 22 +- docs/stylesheets/extra.css | 110 +++++++++ mkdocs.yml | 28 ++- 12 files changed, 868 insertions(+), 52 deletions(-) create mode 100644 docs/ZH-TW/index.md create mode 100644 docs/en/index.md diff --git a/.cache/plugin/git-committers/page-authors.json b/.cache/plugin/git-committers/page-authors.json index dac0f0b..99cb682 100644 --- a/.cache/plugin/git-committers/page-authors.json +++ b/.cache/plugin/git-committers/page-authors.json @@ -1 +1 @@ -{"cache_date": "2024-05-05", "page_authors": {}} \ No newline at end of file +{"cache_date": "2024-07-22", "page_authors": {}} \ No newline at end of file diff --git a/docs/ZH-TW/index.md b/docs/ZH-TW/index.md new file mode 100644 index 0000000..7cd3e8e --- /dev/null +++ b/docs/ZH-TW/index.md @@ -0,0 +1,232 @@ +--- +title: Home +hide: + # - navigation # 显示右 + # - toc #显示左 + - footer + - feedback +comments: false +--- +# 首頁 + + +
+ 本站已經運作 + +
+ + + + + + + diff --git a/docs/about/geren.md b/docs/about/geren.md index f4db0f9..89ec1fd 100644 --- a/docs/about/geren.md +++ b/docs/about/geren.md @@ -97,4 +97,4 @@ t.parentNode.insertBefore(e,t)}})(); [Send Email :fontawesome-solid-paper-plane:](mailto:+* 优化网站流畅度(玄学) +* 优化了网站的UI和访问速度,启用 CDN 加速 +* 学业繁重 + +##
+* 优化网站流畅度(玄学) +* 美化了Blog页面, 使更加简洁美观,如你所见 +* 内心丰盈者,独行也独众,心有山海,静而不争 + + +##
+* 优化网站流畅度(玄学) +* 优化多处UI +* 删减了部分拖慢网站速度的JS/CSS代码 +* 更新了[MKdocs补充系列教程](https://blog.csdn.net/m0_63203517/article/details/139814216?spm=1001.2014.3001.5501) +* 近期略有时间,所以更文变得高产 + + +##
+* 优化网站流畅度(玄学) +* 期末结束 +* 删减了冗余代码 + +##
+* 优化网站流畅度(玄学) +* 近期学业繁重 + +##
+* 优化网站流畅度(玄学) +* 过了六一 + +##
+* 优化网站流畅度(玄学)
+* 全站引入自动在新标签页打开,仓库地址:[mkdocs-open-in-new-tab](https://newtab.kubaandrysek.cz/)
+
+
+Look at this source open_in_new_tab.js:
+
+```js
+// Description: Open external links in a new tab and PDF links in a new tab
+// Source: https://jekyllcodex.org/without-plugin/new-window-fix/
+
+//open external links in a new window
+function external_new_window() {
+ for(let c = document.getElementsByTagName("a"), a = 0;a < c.length;a++) {
+ let b = c[a];
+ if(b.getAttribute("href") && b.hostname !== location.hostname) {
+ b.target = "_blank";
+ b.rel = "noopener";
+ }
+ }
+}
+//open PDF links in a new window
+function pdf_new_window ()
+{
+ if (!document.getElementsByTagName) {
+ return false;
+ }
+ let links = document.getElementsByTagName("a");
+ for (let eleLink=0; eleLink < links.length; eleLink ++) {
+ if ((links[eleLink].href.indexOf('.pdf') !== -1)||(links[eleLink].href.indexOf('.doc') !== -1)||(links[eleLink].href.indexOf('.docx') !== -1)) {
+ links[eleLink].onclick =
+ function() {
+ window.open(this.href);
+ return false;
+ }
+ }
+ }
+}
+
+function apply_rules() {
+ external_new_window();
+ pdf_new_window();
+}
+
+if (typeof document$ !== "undefined") {
+ // compatibility with mkdocs-material's instant loading feature
+ // based on code from https://github.com/timvink/mkdocs-charts-plugin
+ // Copyright (c) 2021 Tim Vink - MIT License
+ // fixes [Issue #2](https://github.com/JakubAndrysek/mkdocs-open-in-new-tab/issues/2)
+ document$.subscribe(function() {
+ apply_rules();
+ console.log("Applying rules");
+ })
+}
+```
+Show source code
+
* 发布[Mkdocs-Wcowin主题|3.0版本](https://github.com/Wcowin/Mkdocs-Wcowin/releases/tag/3.0){target=“_blank”}!!! * 优化网站流畅度(玄学) diff --git a/docs/blog/websitebeauty/mkdocsfont.md b/docs/blog/websitebeauty/mkdocsfont.md index 5e43482..9e91f02 100644 --- a/docs/blog/websitebeauty/mkdocsfont.md +++ b/docs/blog/websitebeauty/mkdocsfont.md @@ -7,7 +7,8 @@ tags: 我目前在用的字体:[霞鹜文楷](https://github.com/lxgw/LxgwWenKai){target=_blank} 想必你可以直观从我的网站感受到,[这款字体](https://chawyehsu.github.io/lxgw-wenkai-webfont/)的美观程度。 -[快速教程](#基于mkdocs的网站字体美化用法) +[快速教程] +[快速教程]: #mkdocs *** **以下是摘录的部分字体官方介绍文档** @@ -155,7 +156,7 @@ body { 四选一,mkdocs.yml和extra.css相互对应 -不懂extra_css的用法的可以看一下我写的[extra_css部分](https://wcowin.work/blog/Mkdocs/mkdocs2/#extra_javascript-和extra_css){target=_blank}教程 +不懂extra_css的用法的可以看一下我写的[extra_css部分](../Mkdocs/mkdocs2.md#extra_javascript-extra_css)教程 !!!tip 切换字体后可能返回顶部按钮会在个别浏览器显示异常 diff --git a/docs/en/index.md b/docs/en/index.md new file mode 100644 index 0000000..f360336 --- /dev/null +++ b/docs/en/index.md @@ -0,0 +1,233 @@ +--- +title: Home +hide: + # - navigation # 显示右 + # - toc #显示左 + - footer + - feedback +comments: false +--- +# Home + + +
+ This site is already running + +
+ + + + + + + diff --git a/docs/index.md b/docs/index.md index ea7d019..274bafa 100644 --- a/docs/index.md +++ b/docs/index.md @@ -193,16 +193,16 @@ ____ __ ____ ______ ______ ____ __ ____ __ .__ __. --- - [Mkdocs-Wcowin博客主题社区](https://support.qq.com/products/646913/){target=“_blank”} - - [留言板](liuyanban.md) + - [留言板](liuyanban.md)[^Knowing-that-loving-you-has-no-ending] - [Blogger](blog/index.md) - [:octicons-arrow-right-24: 了解我](about/geren.md) + [:octicons-arrow-right-24: 了解我](about/geren.md)[^see-how-much-I-love-you]月落乌啼霜满天 江枫渔火对愁眠
+《枫桥夜泊》【唐代】张继
+