From 74f21585cb1b491ef61f2db386fccedbc0457ebd Mon Sep 17 00:00:00 2001
From: hhw <2589622350@qq.com>
Date: Sun, 29 Dec 2024 19:41:49 +0800
Subject: [PATCH] update SUMMARY.md, Introduction.md and so on, nearly ok.
---
ConfigExamples/ConfigExamples.md | 29 ++++++++++
ConfigExamples/t.py | 9 ++++
Introduction.md | 58 ++++++--------------
Learn/LearnConda/Conda.md | 14 +++++
Learn/LearnJinJia2/Jinjia2.md | 3 ++
Learn/LearnMocCUDA/MocCUDA.md | 0
Linux/Linux.md | 0
Linux/LinuxFamily/LinuxFamily.md | 0
Misc/Bochs.md | 4 +-
Misc/Conda.md | 14 -----
{Network => Misc}/Copy.md | 0
Misc/GitBook.md | 5 ++
Misc/Misc.md | 0
Network/Network.md | 0
Papers/Papers.md | 0
Programming/Programming.md | 0
PythonLibs/PythonLibs.md | 0
ReadingNotes/{index.md => ReadingNotes.md} | 0
SUMMARY.md | 62 +++++++++++++++++++++-
book.json | 28 +++++++++-
20 files changed, 164 insertions(+), 62 deletions(-)
create mode 100644 ConfigExamples/ConfigExamples.md
create mode 100644 ConfigExamples/t.py
create mode 100644 Learn/LearnJinJia2/Jinjia2.md
create mode 100644 Learn/LearnMocCUDA/MocCUDA.md
create mode 100644 Linux/Linux.md
create mode 100644 Linux/LinuxFamily/LinuxFamily.md
delete mode 100644 Misc/Conda.md
rename {Network => Misc}/Copy.md (100%)
create mode 100644 Misc/Misc.md
create mode 100644 Network/Network.md
create mode 100644 Papers/Papers.md
create mode 100644 Programming/Programming.md
create mode 100644 PythonLibs/PythonLibs.md
rename ReadingNotes/{index.md => ReadingNotes.md} (100%)
diff --git a/ConfigExamples/ConfigExamples.md b/ConfigExamples/ConfigExamples.md
new file mode 100644
index 0000000..6d44b66
--- /dev/null
+++ b/ConfigExamples/ConfigExamples.md
@@ -0,0 +1,29 @@
+# Configuration Examples
+
+- [Configuration Examples](#configuration-examples)
+ - [`.clang-format`](#clang-format)
+ - [`.gitignore`](#gitignore)
+
+## `.clang-format`
+
+```yaml
+---
+Language: Cpp
+AccessModifierOffset: -2
+AlignAfterOpenBracket: Align
+AlignArrayOfStructures: None
+AlignConsecutiveMacros: None
+AlignConsecutiveAssignments: None
+AlignConsecutiveBitFields: None
+AlignConsecutiveDeclarations: None
+AlignEscapedNewlines: Left
+AlignOperands: Align
+AlignTrailingComments: true
+...
+```
+
+---
+
+## `.gitignore`
+
+[import](./.gitignore)
diff --git a/ConfigExamples/t.py b/ConfigExamples/t.py
new file mode 100644
index 0000000..434c8aa
--- /dev/null
+++ b/ConfigExamples/t.py
@@ -0,0 +1,9 @@
+# load_code.py
+def load_code(file_path):
+ with open(file_path, 'r') as file:
+ return f"```python\n{file.read()}\n```"
+
+if __name__ == "__main__":
+ code_block = load_code("xx.py")
+ with open("README.md", 'a') as md_file:
+ md_file.write("\n" + code_block)
\ No newline at end of file
diff --git a/Introduction.md b/Introduction.md
index 098c549..054c99d 100644
--- a/Introduction.md
+++ b/Introduction.md
@@ -1,43 +1,15 @@
-# My Notes for nearly Everything
-
-- Learn
-- Linux
-- Programming
-- ReadingNotes
-- Network
-- Papers
-- ConfigExamples
-- Git
-- Misc
-
-
- Learn
-
-- LearnGPU2CPU-by-GPT
-- LearnMLIR
-- LearnMocCUDA
-- LearnPolygeist
-- LearnPolyhedralModel
-
-
-
- Linux
-
-- LinuxFamily
-- Display
-- UserManagement
-- InputMethod: Fcitx
-- Nautlius: Debian File Explorer
-
-
-
- Programming
-
-- CRTP: Compile-Time-Reflection-Programming
-
-
- ConfigExamples
-
-- `.clang-format`
-- `.gitignore`
-
\ No newline at end of file
+# My Notes for nearly Everything, by [hhw](https://github.com/houhuawei23)
+
+- [`Learn`](Learn/Learn.md): Record learning resources, environment configuration, common questions and precautions when learning something or a certain skill
+- [`Linux`](Linux/Linux.md): Linux related notes, including Linux distribution, display, user management, input method, etc.
+- [`PythonLibs`](PythonLibs)
+ -
+- [`Programming`](Programming/Programming.md): Programming related notes, about design patterns and so on.
+- [`ReadingNotes`](ReadingNotes/ReadingNotes.md): Personal reading notes, including books and articles.
+- [`Network`](Network/Network.md): Network related notes, including network protocols, network architecture, etc.
+- [`Papers`](Papers/Papers.md): Papers I read and want to remember.
+- [`ConfigExamples`](ConfigExamples/ConfigExamples.md): Configuration examples for different tools and editors.
+- [`Git`](Git): Git related notes, including basic usage, branch management, etc.
+- [`Misc`](Misc/Misc.md): Miscellaneous notes, uncategorized notes.
+
+⭐ If you think this repository is helpful to you, please give me a [star](https://github.com/houhuawei23/Notes)! 😚
diff --git a/Learn/LearnConda/Conda.md b/Learn/LearnConda/Conda.md
index e69de29..7f2030d 100644
--- a/Learn/LearnConda/Conda.md
+++ b/Learn/LearnConda/Conda.md
@@ -0,0 +1,14 @@
+pypi: https://pypi.tuna.tsinghua.edu.cn/simple
+
+https://mirrors.tuna.tsinghua.edu.cn/help/pypi/
+
+
+anaconda:
+
+https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/
+
+
+```bash
+conda config --set custom_channels.auto https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/
+
+```
\ No newline at end of file
diff --git a/Learn/LearnJinJia2/Jinjia2.md b/Learn/LearnJinJia2/Jinjia2.md
new file mode 100644
index 0000000..2b3f4e2
--- /dev/null
+++ b/Learn/LearnJinJia2/Jinjia2.md
@@ -0,0 +1,3 @@
+# Jinjia2
+
+[include](./jinjia.py)
\ No newline at end of file
diff --git a/Learn/LearnMocCUDA/MocCUDA.md b/Learn/LearnMocCUDA/MocCUDA.md
new file mode 100644
index 0000000..e69de29
diff --git a/Linux/Linux.md b/Linux/Linux.md
new file mode 100644
index 0000000..e69de29
diff --git a/Linux/LinuxFamily/LinuxFamily.md b/Linux/LinuxFamily/LinuxFamily.md
new file mode 100644
index 0000000..e69de29
diff --git a/Misc/Bochs.md b/Misc/Bochs.md
index 48ba6ea..3b96292 100755
--- a/Misc/Bochs.md
+++ b/Misc/Bochs.md
@@ -1,5 +1,5 @@
## Bochs
----
+
欢迎来到Bochs IA-32仿真器项目
Bochs是一个用C++编写的高度可移植的开源`IA-32(x86)PC仿真器`,可以在大多数流行的平台上运行。它包括对英特尔x86 CPU、普通I/O设备和自定义BIOS的仿真。Bochs可以编译模拟许多不同的x86 CPU,从早期的386到最新的x86-64英特尔和AMD处理器,甚至可能还没有进入市场。
@@ -16,9 +16,7 @@ Bochs是一个**仿真器**(emulator)--不是**虚拟化软件**(virtualiz
**Bochs的仿真提供了一个可控的、精确的执行环境,但代价是速度/性能。**这在某些情况下可能是有利的,例如:
- 在开发操作系统或引导程序时
-
- 当处理非常老的、关键任务的软件时
-
- 当对系统级代码进行逆向工程时
diff --git a/Misc/Conda.md b/Misc/Conda.md
deleted file mode 100644
index 7f2030d..0000000
--- a/Misc/Conda.md
+++ /dev/null
@@ -1,14 +0,0 @@
-pypi: https://pypi.tuna.tsinghua.edu.cn/simple
-
-https://mirrors.tuna.tsinghua.edu.cn/help/pypi/
-
-
-anaconda:
-
-https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/
-
-
-```bash
-conda config --set custom_channels.auto https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/
-
-```
\ No newline at end of file
diff --git a/Network/Copy.md b/Misc/Copy.md
similarity index 100%
rename from Network/Copy.md
rename to Misc/Copy.md
diff --git a/Misc/GitBook.md b/Misc/GitBook.md
index 1ec111c..1f06cf2 100644
--- a/Misc/GitBook.md
+++ b/Misc/GitBook.md
@@ -8,6 +8,10 @@ Forget building your own custom docs platform. With GitBook you get beautiful do
- [gitbook-documentation zh](https://chrisniael.gitbooks.io/gitbook-documentation/content/index.html)
- [gitbook-cli](https://github.com/GitbookIO/gitbook-cli)
+## Extensions
+
+- [include-codeblock](https://github.com/azu/gitbook-plugin-include-codeblock)
+ - `[include](test.py)`
## Install
```bash
@@ -44,3 +48,4 @@ GitBook 约定了下面这些文件的作用:
- GLOSSARY:术语描述的清单
至少需要一个 README 和 SUMMARY 文件来构建一本书。
+
diff --git a/Misc/Misc.md b/Misc/Misc.md
new file mode 100644
index 0000000..e69de29
diff --git a/Network/Network.md b/Network/Network.md
new file mode 100644
index 0000000..e69de29
diff --git a/Papers/Papers.md b/Papers/Papers.md
new file mode 100644
index 0000000..e69de29
diff --git a/Programming/Programming.md b/Programming/Programming.md
new file mode 100644
index 0000000..e69de29
diff --git a/PythonLibs/PythonLibs.md b/PythonLibs/PythonLibs.md
new file mode 100644
index 0000000..e69de29
diff --git a/ReadingNotes/index.md b/ReadingNotes/ReadingNotes.md
similarity index 100%
rename from ReadingNotes/index.md
rename to ReadingNotes/ReadingNotes.md
diff --git a/SUMMARY.md b/SUMMARY.md
index b3bccf9..0f7ad3c 100644
--- a/SUMMARY.md
+++ b/SUMMARY.md
@@ -1,4 +1,64 @@
# Notes for Nearly Everything, by hhw
- [Learn](Learn/Learn.md)
- - [LearnAIMA](Learn/LearnAIMA/index.md)
\ No newline at end of file
+ - [Learn AIMA](Learn/LearnAIMA/index.md)
+ - [Learn Conda](Learn/LearnConda/Conda.md)
+ - [Learn CUDA](Learn/LearnCUDA/CUDA.md)
+ - [Learn Computer Vision](Learn/LearnCV/ComputerVisoin.md)
+ - [Learn Docker](Learn/LearnDocker/docker.md)
+ - [Learn Drones](Learn/LearnDrones/Note.md)
+ - [Learn GameDev](Learn/LearnGameDev/Note.md)
+ - [Learn Game Theory](Learn/LearnGameTheory/GameTheory.md)
+ - [Learn Lalrpop (Rust)](Learn/LearnLalrpop/Lalrpop.md)
+ - [Learn Pest (Rust)](Learn/LearnPest/pest.md)
+ - [Learn MLIR](Learn/LearnMLIR/MLIR-LanRef.md)
+ - [Learn Rust](Learn/LearnRust/Resources.md)
+ - [Learn ROS](Learn/LearnROS/ROS.md)
+ - [Learn Personal Website](Learn/PersonalWebsite/Note.md)
+ - [Learn MocCUDA](Learn/LearnMocCUDA/MocCUDA.md)
+ - [Learn Polygeist](Learn/LearnPolygeist/Note.md)
+ - [Learn Polyhedral Compilation](Learn/LearnPolyhedralModel/Note.md)
+ - [Learn ROCm](Learn/LearnROCm/ROCm.md)
+ - [Learn JinJia2](Learn/LearnJinJia2/Jinjia2.md)
+- [Misc](Misc/Misc.md)
+ - [Useful Links](Misc/00_Links.md)
+ - [Github Reps](Misc/01_GitHubReps.md)
+ - [Gitbook](Misc/GitBook.md)
+ - [Typst](Misc/Typst.md)
+ - [Markdown](Misc/Markdown.md)
+ - [VScode](Misc/VScode.md)
+ - [Bochs](Misc/Bochs.md)
+ - [Regular Exp](Misc/RegularExp.md)
+ - [FuzzTesting](Misc/FuzzTesting/FuzzTesting.md)
+ - [PowerShell](Misc/PowerShell.md)
+ - [NPM](Misc/NPM.md)
+ - [Fonts](Misc/Fonts.md)
+ - [Drawing](Misc/Drawing.md)
+ - [Flatpack](Misc/Flatpack)
+- [Linux](Linux/Linux.md)
+ - [Display](Linux/Display/Display.md)
+ - [LinuxFamily](Linux/LinuxFamily/LinuxFamily.md)
+ - [UserManagement](Linux/UserManagement.md)
+ - [InputMethod](Linux/InputMethod.md)
+ - [PrintingDrivers](Linux/PrintingDrivers.md)
+- [PythonLibs](PythonLibs/PythonLibs.md)
+ - [ArgParse](PythonLibs/ArgParse.md)
+- [Network](Network/Network.md)
+ - [Tailscale](Network/Tailscale.md)
+ - [Cxxxh](Network/Clash.md)
+- Git
+ - [git](Git/git.md)
+ - [githttps](Git/githttps.md)
+ - [git-branch](Git/git-branch.md)
+ - [GitHub](Git/Github.md)
+- [Papers](Papers/Papers.md)
+ - [Attention Is Turing Complete](Papers/AttentionIsTuringComplete.md)
+- [Programming](Programming/Programming.md)
+- [ConfigExamples](ConfigExamples/ConfigExamples.md)
+- [ReadingNotes](ReadingNotes/ReadingNotes.md)
+ - [青年在选择职业时的考虑-马克思](ReadingNotes/青年在选择职业时的考虑-马克思-1835.md)
+ - [研究与学风-张申府-1948](ReadingNotes/研究与学风-张申府-1948.md)
+ - [论青年修养-张申府-1946](ReadingNotes/论青年修养-张申府-1946.md)
+ - [论青年的修养-张闻天-1938](ReadingNotes/论青年的修养-张闻天-1938.md)
+ - [计算之魂](ReadingNotes/计算之魂-吴军/index.md)
+ - [Mao](ReadingNotes/语录-毛泽东.md)
\ No newline at end of file
diff --git a/book.json b/book.json
index 1e67e9f..728d9ab 100644
--- a/book.json
+++ b/book.json
@@ -1,8 +1,34 @@
{
- "plugins": ["-search", "katex-pp", "code"],
"description": "This is such a great book!",
"language": "cn",
"structure": {
"readme": "Introduction.md"
+ },
+ "plugins": [
+ "include-codeblock",
+ "-lunr",
+ "-search",
+ "search-pro",
+ "expandable-chapters",
+ "code",
+ "chapter-fold",
+ "splitter",
+ "github",
+ "-highlight",
+ "prism",
+ "prism-themes",
+ "theme-comscore",
+ "katex-pp"
+ ],
+ "pluginsConfig": {
+ "github": {
+ "url": "https://github.com/houhuawei23/Notes"
+ },
+ "prism": {
+ "lang": {
+ "shell": "bash"
+ },
+ "css": ["prism-themes/themes/prism-synthwave84.css"]
+ }
}
}