This guide helps you upgrade from v1 to v2.
v2 requires Node.js 18 or higher:
# Check your Node.js version
node --version
# Update if needed
nvm install 18
nvm use 18
The configuration format has changed:
v1 (Old)
shipyard({
siteTitle: 'My Site',
siteTagline: 'Welcome',
})
v2 (New)
shipyard({
title: 'My Site',
tagline: 'Welcome',
})
If you’re using versioned docs, update your content structure:
docs/
├── v2/
│ ├── index.md
│ └── guide.md
└── v1/ # Keep old version
├── index.md
└── guide.md
Update dependencies
npm update @levino/shipyard-base @levino/shipyard-docs
Update configuration following the new format above
Test your build
npm run build
Review deprecation warnings and address any issues
If you encounter issues during migration: