跳到主要内容

tips

  • markdown生成tree mac中安装tree
brew install tree

tree 命令部分常用命令
tree -a 显示所有
tree -d 只显示文档夹
tree -L n 显示项目的层级,n表示层级数,比如想要显示项目三层结构,可以用tree -l 3;
tree -I pattern 用于过滤不想要显示的文档或者文档夹。比如你想要过滤项目中的 node_modules 文档夹,可以使用 tree -I "node_modules";
tree > tree.md 将项目结构输出到 tree.md 这个文档
tree -N 防止中文名乱码
生成目录,过滤 node_modules,防止中文乱码,输出到 目录结构.md 的 demo:

tree -N -d -I "node_modules" > 目录结构.md
└── RnCliApp
├── __tests__
├── android
│   ├── app
│   │   ├── build
│   │   │   ├── generated
│   │   │   │   ├── ap_generated_sources
│   │   │   │   │   └── debug
│   │   │   │   │   └── out
│   │   │   │   ├── res
│   │   │   │   │   ├── pngs
│   │   │   │   │   │   └── debug
│   │   │   │   │   └── resValues
│   │   │   │   │   └── debug
│   │   │   │   │   └── values
│   │   │   │   ├── rncli
│   │   │   │   │   └── src
│   │   │   │   │   └── main
│   │   │   │   │   └── java
│   │   │   │   │   └── com
│   │   │   │   │   └── facebook
You have to read about this
Hey did you actually read the doc above?
📝This is something that is good to note
Risky setup going on here!
⚠️ WARNING
Another way to warn you

[!WARNING]
Critical content demanding immediate user attention due to potential risks.

📝 Tip
Critical content demanding immediate user attention due to potential risks.
Critical content demanding immediate user attention due to potential risks.
Critical content demanding immediate user attention due to potential risks.

[!NOTE] Always include the prose class when adding a size modifier

[!IMPORTANT] Key information users need to know to achieve their goal.

emojis: https://gist.github.com/rxaviers/7360908 https://emojipedia.org/

new rule new rule new rule

Ctrl

[!NOTE] Useful information that users should know, even when skimming content.

[!TIP] Helpful advice for doing things better or more easily.

[!IMPORTANT] Key information users need to know to achieve their goal.

[!WARNING] Urgent info that needs immediate user attention to avoid problems.

[!CAUTION] Advises about risks or negative outcomes of certain actions.