QC2168 / vite-plugin-vitepress-auto-sidebar

The vite plugin that automatically generates sidebar data by scanning directories, based on vitepress
MIT License
85 stars 12 forks source link

增加从文件获取标题 #10

Closed whp98 closed 1 year ago

whp98 commented 1 year ago

如题

  1. 如果开启选项则从文件读取第一个“# 标题”作为标题
  2. 如果是目录则读取目录下index.md或者和目录同名的md文件中的标题
QC2168 commented 1 year ago

@whp98 哈喽,很感谢您的新功能提交,但在提交代码之前请根据.eslintrc中的代码风格进行格式化

whp98 commented 1 year ago

@QC2168 代码格式化完成