Version v2 - Stable
On this page
Migration Guide: v1 to v2
This guide helps you upgrade from v1 to v2.
Breaking Changes
Node.js Version
v2 requires Node.js 18 or higher:
# Check your Node.js version
node --version
# Update if needed
nvm install 18
nvm use 18
Configuration Format
The configuration format has changed:
v1 (Old)
shipyard({
siteTitle: 'My Site',
siteTagline: 'Welcome',
})
v2 (New)
shipyard({
title: 'My Site',
tagline: 'Welcome',
})
Content Structure
If you’re using versioned docs, update your content structure:
docs/
├── v2/
│ ├── index.md
│ └── guide.md
└── v1/ # Keep old version
├── index.md
└── guide.md
Migration Steps
-
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
Getting Help
If you encounter issues during migration:
- Check the v2 documentation
- Review the changelog
- Open an issue on GitHub