1.0.3 • Published 3 years ago
@docus/social-image v1.0.3
Docus Social Image Module
Generate Social Preview Image for Docus pages.
Quick Setup
- Add
@docus/social-image
dependency to your project:
# Using Yarn
yarn add --dev @docus/social-image
# Using NPM
npm install --save-dev @docus/social-image
- Add
@docus/social-image
to thebuildModules
section of yournuxt.config.js
{
buildModules: [
'@docus/social-image'
]
}
Usage
Add a social-image-preview
page to your app, and generate an image for each of your Docus page with that page.
You can take a look at the shipped social-image-preview.vue.
Development
- Clone this repository
- Install dependencies using
yarn install
- Start dev server using
yarn dev