Skip to content

Package Commands

Render synchronized package-manager tabs for installation commands.

On this page

Usage

Write a standalone shell fence containing a supported install command. Indocio renders the package-manager selector automatically.

md
export default defineAppConfig({
  indocio: {
    docs: {
      content: { width: '42rem' },
      sidebar: { enabled: true, width: 240, collapsible: false },
      toc: { enabled: true, position: 'content', depth: 3 },
      breadcrumbs: true,
      footer: true,
      navigation: true,
      search: true,
      actions: { copyLink: true },
    },
    spaces: { switcher: 'dropdown' },
  },
})

The selector offers pnpm, npm, yarn, and Bun. Package-manager selections are shared across command blocks during navigation. Each panel includes a copy button.

Direct component usage

When authoring custom commands, provide every package manager explicitly:

md
export default defineNuxtConfig({
  extends: ['@igrislabs/indocio'],
  indocio: {
    i18n: { defaultLocale: 'en' },
  },
})

commands is required and maps pnpm, npm, yarn, and bun to command strings. Use Code tabs for source files or alternate implementations.

Indocio · Built with Nuxt Content, IPEX, and Akaza UI.