krahets / hello-algo

《Hello 算法》:动画图解、一键运行的数据结构与算法教程。支持 Python, Java, C++, C, C#, JS, Go, Swift, Rust, Ruby, Kotlin, TS, Dart 代码。简体版和繁体版同步更新,English version ongoing
https://www.hello-algo.com
Other
95.51k stars 12.12k forks source link

目录图标如何设置 #1281

Closed luguosong closed 5 months ago

luguosong commented 5 months ago

image

想请问一下material主题左侧目录的图标是如何配置的,找了半天没找到在哪里配置

krahets commented 5 months ago

Hi,在 markdown 文件头添加:

---
icon: material/map-marker-path
---

即可。以上图标是一个例子,其他图标可在 mkdocs-material 官网搜索