Documentation library for vue library
none
npx nuxi@latest init [ directoryName ]
yarn add @takuma-ru/vue-library-docs
- Add
@takuma-ru/vue-library-docs
toextends
and use the template.defineNuxtConfig({ extends: '@takuma-ru/vue-library-docs', vueLibraryDocs: { isUsePlugin: true // Flag whether to use `@takuma-ru/vue-library-docs` templates and components. } })
- Delete
app.vue
. - Create
app.config.ts
in root.touch app.config.ts
type nul > app.config.ts
- Edit
app.config.ts
.export default defineAppConfig({ docs: { libName: '', developerName: '', description: '', icon: '', image: '', repository: '', npm: '', supportVersion: { vue2: true, vue2Point7: true, vue3: true, nuxt2: true, nuxt3: true }, socialsAccountName: { twitter: '', github: '', facebook: '', instagram: '', youtube: '', medium: '' }, } })
- Create
content
folder in root.mkdir content