Skip to content

Vitepress Valence

Installation

  1. Download the package from NPM:
bash
npm i @cynber/vitepress-valence
bash
pnpm add @cynber/vitepress-valence
bash
yarn add @cynber/vitepress-valence
  1. Add the styles to your project's index.ts file:
ts
// ...
import './style.css'
import '@cynber/vitepress-valence/style.css'
// ...
  1. Modify your Vite config to not externalize the package:
ts
export default defineConfig({
  // ...
  vite: { 
    ssr: { noExternal: ['@cynber/vitepress-valence']} 
  }, 
  // ...
})

Usage

You can now import and use the components in your project. Please see the following pages for detailed information on how to use each component:

  • Article Components: For blog posts, announcements, and similar content.
  • Table Components: A highly customizable component for dynamically displaying data in a table format, with options for icons, images, links, tags, and more/projects
  • Image & Gallery Components: A component for displaying images and galleries in your documentation
  • Components for embedding content:
  • Miscellaneous:

If this project has helped you, would you consider funding future development by buying me a cookie? Thank you! 🍪 ❤️

Created and maintained by @cynber. Find my other projects at cynber.dev.