Options

pluginTypst({
  extensions: ['.typ'],
  include: ['**/*.typ'],
  exclude: ['**/_*', '**/_*/**'],
  fontPaths: ['assets/fonts'],
  inputs: { site: 'My Docs' },
  workspace: undefined,
  className: 'rspress-typst',
  routeExtensions: true,
})
OptionDefaultDescription
extensions['.typ']File extensions treated as Typst docs
includeall .typ under docs rootGlobs relative to the docs root
excludeunderscore-prefixed files/dirsIgnore patterns
fontPathsundefinedExtra font directories for the compiler
inputsundefinedExtra sys.inputs string pairs
workspacedocs rootTypst workspace / package root
className'rspress-typst'Wrapper class on the rendered body
routeExtensionstrueRegister extensions on route.extensions

sys.inputs

pluginTypst({
  inputs: {
    site: 'My Docs',
  },
})
Site: #sys.inputs.at("site", default: "unknown")

See the live example on Math & Code.