2023-06-16 16:41:45 +08:00
..
2023-06-16 16:41:45 +08:00
2023-02-10 04:33:09 +08:00
2023-06-16 16:39:27 +08:00
2023-02-15 01:02:10 +08:00

@vuepress-plume/vuepress-plugin-notes-data

Install

yarn add @vuepress-plume/vuepress-plugin-notes-data

Usage

// .vuepress/config.js
const notesDataPlugin = require('@vuepress-plume/vuepress-plugin-notes-data')
module.exports = {
  //...
  plugins: [
    notesDataPlugin()
  ]
  // ...
}

Options

type NotesDataOptions = {
  dir: string
  link: string
  include?: string | string[]
  exclude?: string | string[]
  notes: NotesItem[]
}

type NotesItem = {
  dir: string
  link: string
  text: string
  sidebar?: NotesSidebar | 'auto'
}

type NotesSidebar = (NotesSidebarItem | string)[]

type NotesSidebarItem = {
  text?: string
  link?: string
  dir?: string
  collapsed?: boolean
  items?: NotesSidebar
}