Skip to main content
GitHub
3 min read

Support

Upgrade Guide

How to upgrade between major Barodoc versions

This guide covers upgrading between major Barodoc versions. For minor/patch updates, simply update your CLI or dependencies — no migration steps needed.

Upgrading to v7.x (from v6.x)

Version 7 introduces Quick Mode’s new architecture (programmatic Astro API), the plugin system, and multi-section documentation.

What Changed

Areav6.xv7.x
Quick ModeCreates package.json + node_modulesCreates temporary .barodoc/ directory
PluginsBuilt-in onlyConfigurable plugin system
Contentdocs/ onlydocs/, blog/, changelog/, help/, pages/
NavigationSingle sectionMulti-section with sections config
Standalone pagesNot supportedpages/ directory

Migration Steps

Update the CLI

If using Quick Mode, just run the latest version:

npx barodoc@latest serve docs

Clean up old artifacts

Remove the old generated files from your project:

rm -rf node_modules package.json package-lock.json

Add .barodoc/ to your .gitignore:

.barodoc/
dist/

Update plugin configuration

Plugins are now declared in barodoc.config.json instead of being implicitly enabled:

{
  "plugins": [
    "@barodoc/plugin-sitemap",
    "@barodoc/plugin-search"
  ]
}

Test your site

Run the dev server and check that all pages render correctly:

npx barodoc serve

Content files unchanged

Your Markdown and MDX files don’t need any changes. Only the CLI invocation and config format have changed.

Full Custom Mode

If you’re using Full Custom Mode (with astro.config.mjs):

  1. Update your dependencies:
pnpm update @barodoc/core @barodoc/theme-docs
  1. The theme integration API is unchanged — docsTheme() works the same way.

  2. If you want multi-section support, add sections to your barodoc.config.json and create matching content collections in src/content/config.ts.

Upgrading to v6.x (from v5.x)

Version 6 upgraded to Astro 5 and introduced the component library.

What Changed

  • Astro 5 — Content Layer API replaces the old content collections
  • New componentsCallout, Card, Steps, CodeGroup, and more
  • Dark mode — Built-in theme toggle
  • Reading time — Automatic reading time estimates

Migration Steps

Update dependencies

pnpm update @barodoc/core @barodoc/theme-docs astro

Update content config

Replace defineCollection with the new Astro 5 content config format if you’re using Full Custom Mode. The glob() loader is now the default.

Update component imports

Component imports changed from deep paths to a single entry point:

- import Callout from "@barodoc/theme-docs/components/Callout";
+ import { Callout } from "@barodoc/theme-docs";

Version Support Policy

VersionStatusNode.jsAstro
7.xCurrent20+5.x
6.xMaintenance (security fixes only)18+5.x
5.xEnd of life16+4.x

We recommend always running the latest version. Quick Mode users get automatic updates via npx.