Skip to content

Commit

Permalink
chore: add options comments
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Dec 27, 2023
1 parent 401f916 commit 77a3edc
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions plugins/plugin-shiki/src/node/shikiPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,28 @@ export type ShikiTheme =
* Options of @vuepress/plugin-shiki
*/
export interface ShikiPluginOptions {
/**
* Languages to be loaded.
*
* Shikiji does not preload any languages to avoid extra overhead. So you need
* to specify the languages you want to use.
*
* @see https://shikiji.netlify.app/languages
*/
langs?: ShikiLang[]

/**
* The single theme to use
*
* @see https://shikiji.netlify.app/themes
*/
theme?: ShikiTheme

/**
* The dark and light themes to use
*
* @see https://shikiji.netlify.app/themes
*/
themes?: {
dark: ShikiTheme
light: ShikiTheme
Expand Down

0 comments on commit 77a3edc

Please sign in to comment.