Configure shipyard to match your project needs.
Create or edit astro.config.mjs:
import shipyard from '@levino/shipyard-base'
import shipyardDocs from '@levino/shipyard-docs'
export default defineConfig({
integrations: [
shipyard({
title: 'My Project',
brand: 'MyApp',
}),
shipyardDocs({
// v2 feature: versioning support
versions: {
current: 'v2',
available: [
{ version: 'v2', label: 'Latest' },
],
},
}),
],
})
The versions option is new in v2:
versions: {
current: 'v2', // Default version
available: [...], // All versions
deprecated: ['v1'], // Show deprecation banner
stable: 'v2', // Stable release marker
}
v2 includes improved sidebar configuration:
shipyardDocs({
sidebar: {
collapsible: true,
autoGenerate: true,
},
})
| Variable | Description | Default |
|---|---|---|
SITE_URL | Production URL | - |
ENABLE_DRAFTS | Show draft content | false |