aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/distros/debian/graph.md15
-rw-r--r--docs/distros/rhel/graph.md14
-rw-r--r--mkdocs.yml9
3 files changed, 37 insertions, 1 deletions
diff --git a/docs/distros/debian/graph.md b/docs/distros/debian/graph.md
new file mode 100644
index 0000000..a52dc64
--- /dev/null
+++ b/docs/distros/debian/graph.md
@@ -0,0 +1,15 @@
+# 介绍页
+
+为了帮助各位理解发行版的关系,我们以下图来直观表示。
+
+```mermaid
+graph TB
+ A ---> C[Deepin];
+ A[Debian] --> B[Ubuntu];
+ A -->|LMDE版| D[Linux Mint];
+ B --> D;
+ B --> E[Zorin OS]
+ B --> F[Pop!_OS]
+ B --> G[KDE neon]
+```
+[^1]: 大多数基于Ubuntu的发行版会预装Snap,部分(如Linux Mint)除外。
diff --git a/docs/distros/rhel/graph.md b/docs/distros/rhel/graph.md
new file mode 100644
index 0000000..5ab5466
--- /dev/null
+++ b/docs/distros/rhel/graph.md
@@ -0,0 +1,14 @@
+# 介绍页
+
+为了帮助各位理解发行版的关系,我们以下图来直观表示。
+
+```mermaid
+graph TB
+ A[Fedora] --> B[CentOS Stream];
+ B --> C["RHEL (Red Hat Enterprise Linux)"];
+ C --> D{与上游源码完全一致?};
+ D -->|是| E[CentOS¹];
+ D -->|是| F[Rocky Linux];
+ D -->|否,二进制兼容| G[AlmaLinux];
+```
+[^1]: 由于红帽宣布RHEL不再免费提供源码,CentOS已停止开发。
diff --git a/mkdocs.yml b/mkdocs.yml
index 72cbf3f..96840af 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -47,6 +47,7 @@ theme:
- content.action.view
- content.code.copy
- content.tooltips
+ - content.footnote.tooltips
- announce.dismiss
markdown_extensions:
@@ -56,7 +57,11 @@ markdown_extensions:
- pymdownx.inlinehilite
- pymdownx.snippets
- pymdownx.magiclink
- - pymdownx.superfences
+ - pymdownx.superfences:
+ custom_fences:
+ - name: mermaid
+ class: mermaid
+ format: !!python/name:pymdownx.superfences.fence_code_format
- pymdownx.tabbed
- pymdownx.tasklist
- pymdownx.emoji
@@ -137,11 +142,13 @@ nav:
- 发行版:
- distros/distro.md
- Debian系:
+ - distros/debian/graph.md
- distros/debian/debian.md
- distros/debian/ubuntu.md
- distros/debian/linuxmint.md
- distros/debian/deepin.md
- 红帽系:
+ - distros/rhel/graph.md
- distros/rhel/fedora.md
- distros/rhel/rhel.md
- distros/rhel/rocky.md