takuma-ru / vue-library-docs

Documentation template library for vue library

Home Page:https://vue-library-docs-git-feature-26-takuma-ru.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@takuma-ru/vue-library-docs

socialPreview

Status

npm npm npm bundle size

Description

Documentation library for vue library

DEMO

none

Getting Started

0. Create nuxt-app

npx nuxi@latest init [ directoryName ]

1. Install

yarn add @takuma-ru/vue-library-docs

2. How to use

  1. Add @takuma-ru/vue-library-docs to extends 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.
      }
    })
  2. Delete app.vue.
  3. Create app.config.ts in root.
    touch app.config.ts
    type nul > app.config.ts
  4. 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: ''
        },
      }
    })
  5. Create content folder in root.
    mkdir content

License

MIT - Copyright (c) 2023 takuma-ru

About

Documentation template library for vue library

https://vue-library-docs-git-feature-26-takuma-ru.vercel.app/

License:MIT License


Languages

Language:Vue 72.6%Language:TypeScript 18.7%Language:JavaScript 4.9%Language:EJS 3.8%