Skip to content

Configuration

The Starlight GitHub Alerts plugin can be configured inside the astro.config.mjs configuration file of your project:

astro.config.mjs
// @ts-check
import starlight from '@astrojs/starlight'
import { defineConfig } from 'astro/config'
import starlightGitHubAlerts from 'starlight-github-alerts'
export default defineConfig({
integrations: [
starlight({
plugins: [
starlightGitHubAlerts({
// Configuration options go here.
}),
],
title: 'My Docs',
}),
],
})

The Starlight GitHub Alerts plugin accepts the following configuration options:

Defines the mapping used to convert GitHub alert types to Starlight aside types.

Type: 'caution' | 'danger' | 'note' | 'tip'
Default: 'danger'

Sets the Starlight aside type used to render GitHub note alerts.

Type: 'caution' | 'danger' | 'note' | 'tip'
Default: 'caution'

Sets the Starlight aside type used to render GitHub important alerts.

Type: 'caution' | 'danger' | 'note' | 'tip'
Default: 'note'

Sets the Starlight aside type used to render GitHub note alerts.

Type: 'caution' | 'danger' | 'note' | 'tip'
Default: 'tip'

Sets the Starlight aside type used to render GitHub tip alerts.

Type: 'caution' | 'danger' | 'note' | 'tip'
Default: 'caution'

Sets the Starlight aside type used to render GitHub warning alerts.