diff --git a/README.md b/README.md index a301ab9e..b2efefdb 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,4 @@ ## Star History -## Star History - [![Star History Chart](https://api.star-history.com/chart?repos=ustclug/Linux101-docs&type=date&legend=top-left&sealed_token=JwfjxFM4BxMmWD5rSEjCC0aQhg-XeNw-qRGkT2NkTVl4OhUfO3ipd9CmY689uu1KJu8KG4HuRKV6x5V39rgYfktSicvvZdw0d4e_Zisitmque1tF_F6vKAavkfZlxAfq9-gLiFqWuau0ZF_vkS-Sdv34JPk4SpP1j0HoouZa3k7mFqHOuchFnMM2i5oo)](https://www.star-history.com/?repos=ustclug%2FLinux101-docs&type=date&legend=top-left) diff --git a/docs/Ch01/images/Android-TV.png b/docs/Ch01/images/Android-TV.png deleted file mode 100644 index 525ea93e..00000000 Binary files a/docs/Ch01/images/Android-TV.png and /dev/null differ diff --git a/docs/Ch01/images/Android-TV.svg b/docs/Ch01/images/Android-TV.svg new file mode 100644 index 00000000..1e95c1c9 --- /dev/null +++ b/docs/Ch01/images/Android-TV.svg @@ -0,0 +1,24 @@ + + + + + + + + + + diff --git a/docs/Ch01/images/Arch-Linux-Logo-dark.svg b/docs/Ch01/images/Arch-Linux-Logo-dark.svg new file mode 100644 index 00000000..effd9ada --- /dev/null +++ b/docs/Ch01/images/Arch-Linux-Logo-dark.svg @@ -0,0 +1,154 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/Ch01/images/Arch-Linux-Logo.png b/docs/Ch01/images/Arch-Linux-Logo.png deleted file mode 100644 index b08e6055..00000000 Binary files a/docs/Ch01/images/Arch-Linux-Logo.png and /dev/null differ diff --git a/docs/Ch01/images/Arch-Linux-Logo.svg b/docs/Ch01/images/Arch-Linux-Logo.svg new file mode 100644 index 00000000..04752e32 --- /dev/null +++ b/docs/Ch01/images/Arch-Linux-Logo.svg @@ -0,0 +1,154 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/Ch01/images/CentOS-Logo-dark.svg b/docs/Ch01/images/CentOS-Logo-dark.svg new file mode 100644 index 00000000..3ba5c70a --- /dev/null +++ b/docs/Ch01/images/CentOS-Logo-dark.svg @@ -0,0 +1,159 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/Ch01/images/CentOS-Logo.png b/docs/Ch01/images/CentOS-Logo.png deleted file mode 100644 index 693c81dd..00000000 Binary files a/docs/Ch01/images/CentOS-Logo.png and /dev/null differ diff --git a/docs/Ch01/images/CentOS-Logo.svg b/docs/Ch01/images/CentOS-Logo.svg new file mode 100644 index 00000000..817f57e3 --- /dev/null +++ b/docs/Ch01/images/CentOS-Logo.svg @@ -0,0 +1,169 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/Ch01/images/Debian-Logo.png b/docs/Ch01/images/Debian-Logo.png deleted file mode 100644 index aba0106b..00000000 Binary files a/docs/Ch01/images/Debian-Logo.png and /dev/null differ diff --git a/docs/Ch01/images/Debian-Logo.svg b/docs/Ch01/images/Debian-Logo.svg new file mode 100644 index 00000000..b1e5b112 --- /dev/null +++ b/docs/Ch01/images/Debian-Logo.svg @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/Ch01/images/Fedora-Logo-dark.svg b/docs/Ch01/images/Fedora-Logo-dark.svg new file mode 100644 index 00000000..5a59b736 --- /dev/null +++ b/docs/Ch01/images/Fedora-Logo-dark.svg @@ -0,0 +1,100 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/Ch01/images/Fedora-Logo.png b/docs/Ch01/images/Fedora-Logo.png deleted file mode 100644 index 03b8a0e5..00000000 Binary files a/docs/Ch01/images/Fedora-Logo.png and /dev/null differ diff --git a/docs/Ch01/images/Fedora-Logo.svg b/docs/Ch01/images/Fedora-Logo.svg new file mode 100644 index 00000000..8d850deb --- /dev/null +++ b/docs/Ch01/images/Fedora-Logo.svg @@ -0,0 +1,100 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/Ch01/images/Manjaro-Logo-dark.svg b/docs/Ch01/images/Manjaro-Logo-dark.svg new file mode 100644 index 00000000..89625b14 --- /dev/null +++ b/docs/Ch01/images/Manjaro-Logo-dark.svg @@ -0,0 +1,48 @@ + + + + + + + + + diff --git a/docs/Ch01/images/Manjaro-Logo.png b/docs/Ch01/images/Manjaro-Logo.png deleted file mode 100644 index 3446d1df..00000000 Binary files a/docs/Ch01/images/Manjaro-Logo.png and /dev/null differ diff --git a/docs/Ch01/images/Manjaro-Logo.svg b/docs/Ch01/images/Manjaro-Logo.svg new file mode 100644 index 00000000..99c76d66 --- /dev/null +++ b/docs/Ch01/images/Manjaro-Logo.svg @@ -0,0 +1,48 @@ + + + + + + + + + diff --git a/docs/Ch01/images/Red-Hat-Logo-dark.svg b/docs/Ch01/images/Red-Hat-Logo-dark.svg new file mode 100644 index 00000000..758e8b1f --- /dev/null +++ b/docs/Ch01/images/Red-Hat-Logo-dark.svg @@ -0,0 +1 @@ +RedHat-Logo-A-Reverse \ No newline at end of file diff --git a/docs/Ch01/images/Red-Hat-Logo.png b/docs/Ch01/images/Red-Hat-Logo.png deleted file mode 100644 index 84c80613..00000000 Binary files a/docs/Ch01/images/Red-Hat-Logo.png and /dev/null differ diff --git a/docs/Ch01/images/Red-Hat-Logo.svg b/docs/Ch01/images/Red-Hat-Logo.svg new file mode 100644 index 00000000..eaba1533 --- /dev/null +++ b/docs/Ch01/images/Red-Hat-Logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/Ch01/images/Ubuntu-Logo-dark.svg b/docs/Ch01/images/Ubuntu-Logo-dark.svg new file mode 100644 index 00000000..f13063a3 --- /dev/null +++ b/docs/Ch01/images/Ubuntu-Logo-dark.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/docs/Ch01/images/Ubuntu-Logo.png b/docs/Ch01/images/Ubuntu-Logo.png deleted file mode 100644 index a4cfe0b8..00000000 Binary files a/docs/Ch01/images/Ubuntu-Logo.png and /dev/null differ diff --git a/docs/Ch01/images/Ubuntu-Logo.svg b/docs/Ch01/images/Ubuntu-Logo.svg new file mode 100644 index 00000000..9beb67a0 --- /dev/null +++ b/docs/Ch01/images/Ubuntu-Logo.svg @@ -0,0 +1,15 @@ + + + +]> + + + + + + + + + + \ No newline at end of file diff --git a/docs/Ch01/images/Windows-Server.png b/docs/Ch01/images/Windows-Server.png deleted file mode 100644 index 5bc04d4d..00000000 Binary files a/docs/Ch01/images/Windows-Server.png and /dev/null differ diff --git a/docs/Ch01/images/Windows-Server.svg b/docs/Ch01/images/Windows-Server.svg new file mode 100644 index 00000000..4c57d9ee --- /dev/null +++ b/docs/Ch01/images/Windows-Server.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/Ch01/images/Xubuntu-Logo-dark.svg b/docs/Ch01/images/Xubuntu-Logo-dark.svg new file mode 100644 index 00000000..a9576b42 --- /dev/null +++ b/docs/Ch01/images/Xubuntu-Logo-dark.svg @@ -0,0 +1,151 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/Ch01/images/Xubuntu-Logo.png b/docs/Ch01/images/Xubuntu-Logo.png deleted file mode 100644 index efd4dc81..00000000 Binary files a/docs/Ch01/images/Xubuntu-Logo.png and /dev/null differ diff --git a/docs/Ch01/images/Xubuntu-Logo.svg b/docs/Ch01/images/Xubuntu-Logo.svg new file mode 100644 index 00000000..cd983c2c --- /dev/null +++ b/docs/Ch01/images/Xubuntu-Logo.svg @@ -0,0 +1,151 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/Ch01/index.md b/docs/Ch01/index.md index 385613df..211c9420 100644 --- a/docs/Ch01/index.md +++ b/docs/Ch01/index.md @@ -91,14 +91,15 @@ Linux 内核并不是一个完整的操作系统,因为它过于精简,单 Debian 是一个完全由自由软件构成的类 UNIX 操作系统,第一个版本发布于 1993 年 9 月 15 日,迄今仍在维护,是最早的发行版之一。其以坚持自由软件精神和生态环境优良而出名,拥有庞大的用户群体,甚至自己也成为了一个主流的子框架,称为“Debian GNU/Linux”。 -![Debian](images/Debian-Logo.png) +![Debian](images/Debian-Logo.svg){: .logo-light-bg } Debian 图标 {: .caption } Debian GNU/Linux 也派生了很多发行版,其中最为著名的便是 Ubuntu(官方译名“友邦拓”)。Ubuntu 由英国的 Canonical 公司主导创立,是一个主打桌面应用的操作系统。其为一般用户提供了一个时新且稳定的由自由软件构成的操作系统,且拥有庞大的社群力量和资源,十分适合普通用户使用。 -![Ubuntu](images/Ubuntu-Logo.png) +![Ubuntu](images/Ubuntu-Logo.svg#only-light) +![Ubuntu](images/Ubuntu-Logo-dark.svg#only-dark) Ubuntu 图标 {: .caption } @@ -107,14 +108,16 @@ Ubuntu 图标 Red Hat Linux 是美国的 Red Hat 公司发行的一个发行版,第一个版本发布于 1994 年 11 月 3 日,也是一个历史悠久的发行版。它曾经也广为使用,但在 2003 年 Red Hat 公司停止了对它的维护,转而将精力都投身于其企业版 Red Hat Enterprise Linux(简称 RHEL)上,Red Hat Linux 自此完结,而商业市场导向的 RHEL 维护至今。 -![Red Hat](images/Red-Hat-Logo.png) +![Red Hat](images/Red-Hat-Logo.svg#only-light) +![Red Hat](images/Red-Hat-Logo-dark.svg#only-dark) Red Hat 公司商标,RHEL 是其旗下产品 {: .caption } 在 Red Hat Linux 在停止官方更新后,由社群启动的 Fedora 项目接管了其源代码并构筑了自己的更新,演变成了如今的 Fedora 发行版。Fedora 是一套功能完备且更新迅速的系统,且本身计划也受到了 Red Hat 公司的赞助,成为了公司测试新技术的平台。 -![Fedora](images/Fedora-Logo.png) +![Fedora](images/Fedora-Logo.svg#only-light) +![Fedora](images/Fedora-Logo-dark.svg#only-dark) Fedora 图标 {: .caption } @@ -123,7 +126,8 @@ Fedora 图标 2020 年 12 月,CentOS 社区在其博客中[宣布未来的重点转向 CentOS Stream](https://www.redhat.com/en/blog/centos-stream-building-innovative-future-enterprise-linux),这是一个全新的滚动发行版。在此之前,RHEL 的上游为 Fedora,而 CentOS 的上游为 RHEL;在推出 CentOS Stream 之后,它就成为了 RHEL 的上游发行版。与此同时,CentOS 8 的支持期限被缩短至 2021 年底,且不再推出新的非 Stream 的 CentOS 版本。不满于该决定的人们也组织了新的社区,推出了诸如 [AlmaLinux](https://almalinux.org/)、[Rocky Linux](https://rockylinux.org/) 等发行版。 -![CentOS](images/CentOS-Logo.png) +![CentOS](images/CentOS-Logo.svg#only-light) +![CentOS](images/CentOS-Logo-dark.svg#only-dark) CentOS 图标 {: .caption } @@ -132,14 +136,16 @@ CentOS 图标 Arch Linux 是一个基于 x86-64 架构的 Linux 发行版,不过因为其内核默认就包含了部分非自由的模块,所以其未受到 GNU 计划的官方支持。即便如此,Arch Linux 也因其“简单、现代、实在、人本、万能”的宗旨赢得了 Linux 中坚用户的广泛青睐。不过,Arch Linux 对这个宗旨的定义和其它发行版有所区别。通常的操作系统为了方便用户快速上手,都是尽可能隐藏底层细节,从而避免用户了解操作系统的运行知识即可直接使用。但是 Arch Linux 则是重在构建优雅、极简的代码结构,这方便了使用者去理解系统,但不可避免地要求使用者自身愿意去了解操作系统的运作方式。某种程度上说,它的“简单”和“人本”注重的是方便用户通过了解而去最大化地利用它,而不是采取屏蔽工作原理的方式来降低使用门槛。因此,本书不建议初学者直接上手 Arch Linux,但十分推荐在读者对 Linux 有进一步了解之后去探索它。 -![Arch Linux](images/Arch-Linux-Logo.png) +![Arch Linux](images/Arch-Linux-Logo.svg#only-light) +![Arch Linux](images/Arch-Linux-Logo-dark.svg#only-dark) Arch Linux 图标 {: .caption } Arch Linux 拥有强大的功能,但因其特殊的理念使得用户不易使用。为了能让一般用户也能用上 Arch Linux 的强大功能,它的变种 Manjaro 发行版于 2011 年问世。Manjaro 发行版基于 Arch Linux,但更注重易用,因而更适合一般用户。 -![Manjaro](images/Manjaro-Logo.png) +![Manjaro](images/Manjaro-Logo.svg#only-light) +![Manjaro](images/Manjaro-Logo-dark.svg#only-dark) Manjaro 图标 {: .caption } @@ -177,7 +183,7 @@ Android 10 原生界面 另一类有名的服务器操作系统是微软公司的 Windows Server 系列,不过其流行程度比不上各类 Linux 发行版。 -![Windows Server](images/Windows-Server.png) +![Windows Server](images/Windows-Server.svg){: .logo-light-bg } Windows Server 图标 {: .caption } @@ -186,7 +192,7 @@ Windows Server 图标 比起十几年前采用传统线路的电视,现在国内很多家庭里的电视都换成了智能数字电视,这些电视通常会配备一个机顶盒来控制电视播放的内容。实际上,电视机顶盒就是一个嵌入式设备,而 Android/Linux 分支下的各类发行版正是主流的嵌入式操作系统,如谷歌公司为数字电视专门推出的 Android TV 操作系统。 -![Android TV](images/Android-TV.png) +![Android TV](images/Android-TV.svg){: .logo-light-bg } Android TV 图标 {: .caption } @@ -248,7 +254,8 @@ Xubuntu 是 Ubuntu 的一个子发行版,它与 Ubuntu 非常类似,但其 Xubuntu 的设计理念是创造一个易用且更轻量的 Ubuntu。与 Ubuntu 不同的是,它采用的是更轻量和兼容性更强的 Xfce 桌面系统,并基于 GTK 运行。Xubuntu 和 Ubuntu 使用完全一致的软件源,因此 Xubuntu 能运行绝大部分 Ubuntu 下的软件。 - ![](images/Xubuntu-Logo.png) + ![Xubuntu](images/Xubuntu-Logo.svg#only-light) + ![Xubuntu](images/Xubuntu-Logo-dark.svg#only-dark) Xubuntu 图标 {: .caption } diff --git a/docs/Ch05/assets/unix_filesystem.png b/docs/Ch05/assets/unix_filesystem.png deleted file mode 100644 index 84b449c7..00000000 Binary files a/docs/Ch05/assets/unix_filesystem.png and /dev/null differ diff --git a/docs/Ch05/index.md b/docs/Ch05/index.md index 97009c30..f8aa1d7a 100644 --- a/docs/Ch05/index.md +++ b/docs/Ch05/index.md @@ -317,18 +317,18 @@ drwxrwxr-x 2 ustc ustc 4096 Feb 3 22:38 a_folder ```mermaid graph LR - / --> bin - / --> boot - / --> dev - / --> etc - / --> home - / --> mnt - / --> opt - / --> proc - / --> root - / --> usr - / --> var - / --> tmp + slash["/"] --> bin + slash --> boot + slash --> dev + slash --> etc + slash --> home + slash --> mnt + slash --> opt + slash --> proc + slash --> root + slash --> usr + slash --> var + slash --> tmp bin --> ls bin --> cp @@ -515,6 +515,6 @@ graph LR [^1]: 这里的哈希,指经过了[密码哈希函数](https://zh.wikipedia.org/wiki/%E5%AF%86%E7%A2%BC%E9%9B%9C%E6%B9%8A%E5%87%BD%E6%95%B8) ([Cryptographic hash function](https://en.wikipedia.org/wiki/Cryptographic_hash_function)) 的处理。密码哈希函数是一种特殊的单向函数,将任意大小的数据映射到一串长度固定的字符串,并且拥有一些优良的性质(如难以找到两个不同的数据,使得映射后的字符串相同),使其破解难度加大。 -[^3]: - [^2]: 然而,对于 Linux 内核来说,系统用户和真实的用户其实没有区别,除了 UID = 0 的用户 (root) 以外。「系统用户」是一个约定俗成而产生的概念。 + +[^3]: diff --git a/docs/credits.md b/docs/credits.md index ba436866..47028f46 100644 --- a/docs/credits.md +++ b/docs/credits.md @@ -20,4 +20,4 @@ ## 贡献者 {#contributors} -[![Contributors](https://cf.ustclug.org/get/?target=https%3A%2F%2Fcontributors-img.web.app%2Fimage%3Frepo%3Dustclug%2FLinux101-docs)](https://github.com/ustclug/Linux101-docs/graphs/contributors) +[![Contributors](https://contrib.rocks/image?repo=ustclug/Linux101-docs)](https://github.com/ustclug/Linux101-docs/graphs/contributors) diff --git a/docs/css/extra.css b/docs/css/extra.css index 8685cb1a..71e2eda4 100644 --- a/docs/css/extra.css +++ b/docs/css/extra.css @@ -49,3 +49,5 @@ .md-typeset .footnote hr { margin-top: 0.2em; } .highlight .gp { user-select: none; } + +[data-md-color-scheme="slate"] .md-typeset img.logo-light-bg { background-color: rgba(255, 255, 255, 0.88); padding: 12px 20px; border-radius: 8px; } diff --git a/docs/css/extra.scss b/docs/css/extra.scss index 9e2ae294..e46956dd 100644 --- a/docs/css/extra.scss +++ b/docs/css/extra.scss @@ -101,3 +101,9 @@ $color-codes: red, darkred, orangered, green, limegreen, cyan, darkcyan; .highlight .gp { user-select: none; } + +[data-md-color-scheme="slate"] .md-typeset img.logo-light-bg { + background-color: rgba(255, 255, 255, 0.88); + padding: 12px 20px; + border-radius: 8px; +} diff --git a/mkdocs.yml b/mkdocs.yml index 1218a38f..f1400996 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -53,7 +53,6 @@ markdown_extensions: format: !!python/name:pymdownx.superfences.fence_code_format - pymdownx.inlinehilite - pymdownx.keys - - pymdownx.superfences - markdown.extensions.def_list - toc: permalink: true diff --git a/requirements.txt b/requirements.txt index e10842ec..aee6ced7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ mkdocs~=1.6.1 -mkdocs-material>=9.7.3 +--find-links https://github.com/ustclug/mkdocs-material/releases/download/9.8.2%2Bustclug.1/mkdocs_material-9.8.2+ustclug.1-py3-none-any.whl#sha256=e5071948dc1f0a9cea26bd9d84d2ba748576b901654f9f90c273439932a36d54 +mkdocs-material==9.8.2+ustclug.1 jieba