Vitepress Valence
Installation
- Download the package from NPM:
bash
npm i @cynber/vitepress-valencebash
pnpm add @cynber/vitepress-valencebash
yarn add @cynber/vitepress-valence- Add the styles to your project's
index.tsfile:
ts
// ...
import './style.css'
import '@cynber/vitepress-valence/style.css'
// ...- 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:
- Embed from Lemmy: Embed threadiverse posts from Lemmy instances.
- Embed from Mailchimp: Embed a subscription form from Mailchimp.
- Miscellaneous:
- Card & Container Components: The cards from the article setup can also be used independently wherever you want.