Skip to content

Interface: ValaxyExtendConfig

Defined in: packages/valaxy/node/types.ts:52

Properties

addons?

optional addons: ValaxyAddons

Defined in: packages/valaxy/node/types.ts:223

En

Addons system

Zh

插件系统

See

Example

ts
import { defineValaxyConfig } from 'valaxy'
import { addonTest } from 'valaxy-addon-test'

export default defineValaxyConfig({
  addons: [
    // we always recommend to use function, so that you can pass options
    addonTest(),
  ]
})

beastiesOptions?

optional beastiesOptions: Options

Defined in: packages/valaxy/node/types.ts:236

beastiesOptions

See

https://github.com/danielroe/beasties


build

build: object

Defined in: packages/valaxy/node/types.ts:67

options for valaxy build

optional ignoreDeadLinks: boolean | "localhostLinks" | (string | RegExp | (link) => boolean)[]

Don't fail builds due to dead links.

Zh

忽略死链

Default
ts
false

ssgForPagination

ssgForPagination: boolean

Enable SSG for pagination

En

When enabled, it will generate pagination pages for you. /page/1, /page/2, ...

Zh

启用 SSG 分页,将单独构建分页页面 /page/1, /page/2, ...

Default
ts
false

components?

optional components: Options

Defined in: packages/valaxy/node/types.ts:144

See

https://github.com/unplugin/unplugin-vue-components

exclude

Default

ts
components/.exclude

deploy

deploy: object

Defined in: packages/valaxy/node/types.ts:90

Experimental

Deploy to gh-pages/remote server

type?

optional type: "gh-pages" | "remote"

Zh

部署类型

En

deploy type


devtools?

optional devtools: boolean

Defined in: packages/valaxy/node/types.ts:187

Experimental

Enable Vue Devtools & Valaxy Devtools

See

https://devtools-next.vuejs.org/


extendMd()?

optional extendMd: (ctx) => void

Defined in: packages/valaxy/node/types.ts:198

Parameters

ctx
content

string

data

Readonly<Record<string, any>>

excerpt

string

path

string

route

EditableTreeNode

Returns

void

En

Extend markdown, you can modify the markdown content/excerpt

Zh

扩展 markdown


features

features: object

Defined in: packages/valaxy/node/types.ts:119

Markdown Feature

katex

katex: boolean

enable katex for global

See

fuse?

optional fuse: object

Defined in: packages/valaxy/node/types.ts:172

extendKeys?

optional extendKeys: string[]

@en_US Extends the metadata fields returned by the search @zh_CN 扩展搜索返回的元数据字段

Default
ts
[]
@description:en-US By default, returns the following fields: title, tags, categories, author, excerpt, link
@description:zh-CN 默认返回以下字段:title、tags、categories、author、excerpt、link

hooks?

optional hooks: Partial<ValaxyHooks>

Defined in: packages/valaxy/node/types.ts:230

En

Hooks system, you can customize each stage of the lifecycle.

Zh

钩子系统,你可以对生命周期的各个阶段进行定制。

See

https://valaxy.site/guide/custom/hooks


optional ignoreDeadLinks: boolean | "localhostLinks" | (string | RegExp | (link) => boolean)[]

Defined in: packages/valaxy/node/types.ts:59

Don't fail builds due to dead links.

Default

ts
false

Deprecated

use build.ignoreDeadLinks instead


layouts?

optional layouts: Partial<Options>

Defined in: packages/valaxy/node/types.ts:148

See

https://github.com/JohnCampionJr/vite-plugin-vue-layouts


markdown?

optional markdown: MarkdownOptions & Options

Defined in: packages/valaxy/node/types.ts:193

En

config for markdown (include markdown-it plugins)

Zh

markdown 相关配置 MarkdownOptions


modules

modules: object

Defined in: packages/valaxy/node/types.ts:101

internal modules

rss

rss: object

rss.enable

enable: boolean

enable rss

rss.fullText

fullText: boolean

Zh

全文输出

En

full text output

Default
ts
false

router?

optional router: Options

Defined in: packages/valaxy/node/types.ts:152

See

https://github.com/posva/unplugin-vue-router


unocss?

optional unocss: VitePluginConfig

Defined in: packages/valaxy/node/types.ts:156

See

https://unocss.dev/config/


unocssPresets?

optional unocssPresets: object

Defined in: packages/valaxy/node/types.ts:166

unocss presets

attributify?

optional attributify: AttributifyOptions

icons?

optional icons: IconsOptions

typography?

optional typography: TypographyOptions

uno?

optional uno: PresetUnoOptions

See

https://unocss.dev/guide/presets


visualizer?

optional visualizer: PluginVisualizerOptions

Defined in: packages/valaxy/node/types.ts:161

rollup-plugin-visualizer

See

https://github.com/btd/rollup-plugin-visualizer


vite?

optional vite: UserConfig

Defined in: packages/valaxy/node/types.ts:131

vite.config.ts options

See

https://vite.dev/


vue?

optional vue: Options & object

Defined in: packages/valaxy/node/types.ts:136

@vitejs/plugin-vue options

Type declaration

isCustomElement?

optional isCustomElement: (tag) => boolean[]

Parameters
tag

string

Returns

boolean

See

https://github.com/vitejs/vite-plugin-vue/blob/main/packages/plugin-vue/README.md