1.1.12 • Published 10 months ago

vite-plugin-vitepress-auto-index v1.1.12

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

vite-plugin-vitepress-auto-index

vitepress 插件自动建立索引文件

✨ Feature

自动生成index.md文件

🕯️ Usage

install vite-plugin-vitepress-auto-index

yarn add vite-plugin-vitepress-auto-index

add plugin in .vitepress/config.ts

import AutoIndex from 'vite-plugin-vitepress-auto-index';

export default defineConfig({
  vite: {
    plugins: [
      {
        ...AutoIndex({}),
        enforce: 'pre'
      },
    ]
  },
})

blog file formate

  1. formate1
folder
 - doc1.md
 - doc2.md

auto generate index.md

folder
 - doc1.md
 - doc2.md
 - index.md

or

folder
 - doc1.md
 - doc2(folder)

auto generate index.md

folder
 - doc1.md
 - doc2(folder)
 - index.md
  1. formate2
title(folder)
 - title.md
 - asset.jpg

if not other md file in a folder and have asset md title must same name with the folder, otherwise your file will be remove into a xxxx.time.del.bak file.

if there is an index.md file here it also will be removed into a xxxx.time.del.bak file.

1.1.12

10 months ago

1.1.10

10 months ago

1.1.9

10 months ago

1.1.8

10 months ago

1.1.6

10 months ago

1.1.5

10 months ago

1.1.3

10 months ago

1.1.2

10 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago