vuepress-plugin-subpage-directory
v0.0.12
Published
VuePress plugin for generating subpage directory
Downloads
9
Maintainers
Readme
vuepress-plugin-subpage-directory
VuePress 2 plugin for generating subpage index.
Installation
npm install --save vuepress-plugin-subpage-directory
VuePress 2 Config
Add plugin to your VuePress config:
```js
import { subpageDirectoryPlugin } from 'vuepress-plugin-subpage-directory'
export default {
plugins: [subpageDirectoryPlugin()],
}
Usage
<script setup>
import { useLinks } from 'vuepress-plugin-subpage-directory/client'
let links = useLinks()
</script>
<template>
<div v-for="link in links">
<RouterLink :to="link">
<h3 v-text="link" />
</RouterLink>
</div>
</template>