Artalk Options
Config
See Artalk Configuration for details.
The
el,pageTitle,pageKey, andsiteoptions are reserved for the plugin and will be automatically inferred from VuePress config.The two function options
imgUploaderandavatarURLBuildercan only be set on the client side.
Plugin Config
You can directly configure serializable options in the plugin options:
import { commentPlugin } from '@vuepress/plugin-comment'
export default {
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
})