Skip to content
tai-kun's Blume Integrations
Esc
↑↓navigate↵open⌘Jpreview
On this page

Getting Started

Follow these steps to add integrations to Blume and extend your documentation site.

@tai-kun/blume-integrations is a collection of Astro integrations that add small features to Blume documentation sites.

Included integrations

Integration Description Required configuration
routeByBrowserLanguage() Redirects default-locale URLs to the locale that matches the visitor’s browser language. Blume’s i18n (defaultLocale and locales)
typeTableDetailsIds() Adds stable IDs to each TypeTable row and turns property names into links to those IDs. None

Requirements

Package Version
Astro 7.0.0 or later
Blume 2.0.0 or later

Install

npm install @tai-kun/blume-integrations
pnpm add @tai-kun/blume-integrations
yarn add @tai-kun/blume-integrations
bun add @tai-kun/blume-integrations
nub add @tai-kun/blume-integrations
aube add @tai-kun/blume-integrations

Setup

Add the integrations to integrations in blume.config.ts. The following example enables the integration that adds IDs to TypeTable rows.

import { typeTableDetailsIds } from "@tai-kun/blume-integrations";
import { defineConfig } from "blume";

export default defineConfig({
  integrations: [typeTableDetailsIds()],
});

To use routeByBrowserLanguage(), set Blume’s i18n defaultLocale to one of the codes in locales and keep the default locale’s content at the content root. See Route by browser language for the full setup.

Read next

Was this page helpful?