From 6bd928d8db180774b87d8e76dd73e0ccc741c27f Mon Sep 17 00:00:00 2001 From: cxykevin Date: Sun, 11 Aug 2024 15:02:16 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=8B=E6=9C=BA?= =?UTF-8?q?=E7=AB=AF=E8=87=AA=E5=8A=A8=E5=B1=95=E5=BC=80=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=20(#15)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-on: https://git.hmtsai.cn/study-area-cn/study-area-cn/pulls/15 --- book.toml | 1 + theme/index.hbs | 4 +++- theme/js/page.js | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 theme/js/page.js diff --git a/book.toml b/book.toml index 861d5f2..eaeb4f8 100755 --- a/book.toml +++ b/book.toml @@ -18,4 +18,5 @@ additional-js = [ "theme/js/highlight.min.js", "theme/js/mathjax.js", "theme/js/tocrender.js", + "theme/js/page.js", ] diff --git a/theme/index.hbs b/theme/index.hbs index d61aa55..50c96ab 100755 --- a/theme/index.hbs +++ b/theme/index.hbs @@ -84,7 +84,7 @@ {{/if}} - + {{/unless}} @@ -201,6 +201,8 @@ + + \ No newline at end of file diff --git a/theme/js/page.js b/theme/js/page.js new file mode 100644 index 0000000..7597071 --- /dev/null +++ b/theme/js/page.js @@ -0,0 +1,3 @@ +if (window.innerWidth > 640) { + document.getElementById("toc-drawer").setAttribute('open', true) +} From deddf2407c1564c5dc8b76c93a0ae55b84ddd25c Mon Sep 17 00:00:00 2001 From: hmtsai Date: Sun, 11 Aug 2024 16:48:42 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=83=A8=E5=88=86?= =?UTF-8?q?=E7=94=A8=E8=AF=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/SUMMARY.md | 2 +- .../install_rocky_linux/install_in_vmware.md | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/SUMMARY.md b/src/SUMMARY.md index 18e1529..2c4f2fe 100755 --- a/src/SUMMARY.md +++ b/src/SUMMARY.md @@ -36,7 +36,7 @@ - [Linux 常识](./learn_linux_basic/linux_common_sense.md) - [文件与路径](./learn_linux_basic/file_and_path/file_and_path.md) - [文件权限管理](./learn_linux_basic/file_and_path/manage_file_premissons.md) - - [磁盘分区以及文件系统]() + - [磁盘分区以及文件系统](./learn_linux_basic/file_and_path/diskpart_and_filesystem.md) - [tar打包软件]() - [gzip与xz]() - [备份]() diff --git a/src/learn_linux_basic/install_rocky_linux/install_in_vmware.md b/src/learn_linux_basic/install_rocky_linux/install_in_vmware.md index 37f5101..9226120 100755 --- a/src/learn_linux_basic/install_rocky_linux/install_in_vmware.md +++ b/src/learn_linux_basic/install_rocky_linux/install_in_vmware.md @@ -40,7 +40,7 @@ ![New VM Page](./assets/2.4.vmware.3.png) -保持典型不变,点击下一步,点击`安装程序光盘映像文件(iso)(M)`,然后点击游览,找到你镜像下载到的位置,选中镜像,然后打开: +保持典型不变,点击下一步,点击`安装程序光盘映像文件(iso)(M)`,然后点击浏览,找到你镜像下载到的位置,选中镜像,然后打开: ![Choose ISO Img](./assets/2.4.vmware.3.png) @@ -69,10 +69,8 @@ 如果你的电脑内存是 4GB: 那么你应该填写 `2048MB`(2GB) 为系统留出足够空间 如果你的电脑内存是 8GB - 这时你填写 `6144MB`(6GB) 即可。如果你希望同时在主机干点别的的话,填`4096MB`(4GB) 即可 -如果你的电脑内存 > 8GB - 这时你填多少都可以,只不过最好各留出最少 4G(4096MB) 的内存 - 例如笔者的电脑是 12GB(49152MB),那么就可以填写 `8192MB`(8GB) + 这时你填写 `4096MB`(6GB) 即可。 +一般来说,分配实体机内存的一半即可。 CPU数通常只需要填你的CPU核心数的一半就可以了。现在的电脑至少2核起步。 如果你在使用13代或以上的Intel酷睿,那么你填写你的大核心(P核)的数量就行。