Skip to content

node

Interfaces

InterfaceDescription
CdnModuleA module to load from CDN instead of bundling
ContentItem-
ContentLoader-
ContentLoaderContext-
LoadConfigFromFileOptions-
MdAfterRenderContext-
ResolvedConfig-
ResolvedValaxyOptions-
ValaxyAddonResolver-
ValaxyEntryOptions-
ValaxyExtendConfig-
ValaxyHooks-
ValaxyNode-
ValaxyServerOptions-

Type Aliases

Type AliasDescription
HookResult-
UnoSetup-
UserInputConfig-
UserValaxyNodeConfig-
ValaxyAddonExport-
ValaxyAddonFn-
ValaxyAddonLike-
ValaxyAddons-
ValaxyApp-
ValaxyConfigExport-
ValaxyConfigExtendKey-
ValaxyConfigFnfn with options for theme config
ValaxyNodeConfig-
ValaxyPickConfig-
ValaxyTheme-

Variables

VariableDescription
ALL_ROUTE-
cli-
customElements-
defaultSiteConfig-
defaultValaxyConfig-
defaultViteConfig-
defineAddon-
defineConfig-
defineTheme-
EXCERPT_SEPARATOR-
GLOBAL_STATE-
isInstalledGlobally-
mergeValaxyConfigmerge valaxy.config (source, default)
PATHNAME_PROTOCOL_RE-
version-

Functions

FunctionDescription
$t试验性
build-
createServer-
defineContentLoaderDefine a content loader for fetching content from external CMS platforms.
defineSiteConfigType helper for site.config.ts
defineUnoSetup-
defineValaxyAddon-
defineValaxyConfigType helper for valaxy.config.ts
defineValaxyTheme-
encryptContent-
fixViteSsgHtmlFix corrupted HTML produced by vite-ssg's JSDOM serialization under memory pressure. JSDOM.serialize() can emit truncated trailing fragments (e.g. /html>, ml>, l>) when heap is constrained during high-concurrency renders.
generateClientRedirects-
getGitTimestamp-
getServerInfoTextwith valaxyPrefix
isExternalis url external (http/https:)
isKatexEnabledWhether KaTeX is enabled (disabled when MathJax is active).
isKatexPluginNeededWhether the KaTeX markdown-it plugin should be registered. Always true unless MathJax is active, so that per-page frontmatter.katex: true can work even when features.katex is globally false.
isMathJaxEnabledWhether MathJax is enabled (takes priority over KaTeX).
isPath-
loadConfigFromFile-
postProcessForSSGShared post-processing after SSG build (both engines).
processValaxyOptionsPost process valaxyOptions
registerDevCommand-
resolveAddonsConfig-
resolveImportPathBefore is CJS: use 'resolve' ESM: use 'mlly'
resolveImportUrlResolve path for import url on Vite client side
resolveOptions-
resolveSiteConfigresolve site.config.ts and merge with default
resolveSiteConfigFromRootresolve valaxy config from special root
resolveThemeConfigFromRootresolve theme config from special root
resolveThemeValaxyConfigresolve theme config
resolveUserThemeConfigresolve theme.config.ts and merge with default
resolveValaxyConfigresolve user valaxy config options only have userRoot
resolveValaxyConfigFromRoot-
run-
ssgBuild-
ssgBuildLegacyLegacy SSG build using vite-ssg (JSDOM-based). Kept as fallback for --ssg-engine vite-ssg.
startValaxyDev-
toAtFS-
transformObjecttransform obj for vite code
ViteValaxyPlugins-