Artalk Options
Config
See Artalk Configuration for details.
The
el
pageTitle
,pageKey
andsite
options are reserved for plugins, they will be inferred from VuePress config.Two function options
imgUploader
andavatarURLBuilder
can only be set on client side.
Plugin Config
You can directly configure serializable options in the plugin options:
import { commentPlugin } from '@vuepress/plugin-comment'
import { defineUserConfig } from 'vuepress'
export default defineUserConfig({
plugins: [
commentPlugin({
provider: 'Artalk',
// other options
// ...
}),
],
})
Client Config
You can use the defineArtalkConfig
function to customize Artalk:
import { defineArtalkConfig } from '@vuepress/plugin-comment/client'
import { defineClientConfig } from 'vuepress/client'
defineArtalkConfig({
// Artalk config
})