Skip to content

vitepress导航栏自动生成 🚀根据文件目录生成导航

Notifications You must be signed in to change notification settings

Notryag/vitepress-auto-navigation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vitepress-auto-blog

vitepress导航栏自动生成

🚀根据文件目录生成导航

可以根据配置生成vitepressnavsidebar配置

一级目录为顶部nav导航

二级目录为侧边栏sidebar导航

Usage

  1. 安装
pnpm i vitepress-auto-navigation
  1. vuepress配置中使用插件,示例如下
import autoNavigation from 'vitepress-auto-navigation'

const { nav, sidebar } = autoNavigation({
  baseurl: './blog'
})
module.exports = {
  themeConfig: {
    nav,
    sidebar,
  },
};

About

vitepress导航栏自动生成 🚀根据文件目录生成导航

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published