Adding Catalog with one line
Simply add catalog with out-of-box AutoCatalog component
Generate catalog page automatically
Generate catalog page for every folder
How to use
Install
pnpm
pnpm add -D vuepress-plugin-auto-catalog
yarn
yarn add -D vuepress-plugin-auto-catalog
npm
npm i -D vuepress-plugin-auto-catalog
Usage
TS
// .vuepress/config.ts
import { defineUserConfig } from "vuepress";
import { autoCatalogPlugin } from "vuepress-plugin-auto-catalog";
export default defineUserConfig({
plugins: [
autoCatalogPlugin({
// your options
}),
],
});
JS
// .vuepress/config.js
import { autoCatalogPlugin } from "vuepress-plugin-auto-catalog";
export default {
plugins: [
autoCatalogPlugin({
// your options
}),
],
};