Vitepress Valence
Installation
Download the package from NPM:
bashnpm i @cynber/vitepress-valence
bashpnpm add @cynber/vitepress-valence
bashyarn add @cynber/vitepress-valence
Edit your
index.ts
(ex.docs/.vitepress/theme/index.ts
) andconfig.ts
(ex.docs/.vitepress/config.ts
) files to import the CSS file and configure Vite to not externalize the package.tsimport './style.css' import '@cynber/vitepress-valence/style.css' // ...
tsexport default defineConfig({ // ... vite: { ssr: { noExternal: ['@cynber/vitepress-valence']} }, // ... })
Import components as needed. See the following pages for more information.