Successfully integrated Astro Starlight as a separate documentation site for the "Getting Started" guide. This approach avoids the conflicts we encountered when trying to integrate Starlight directly into the main site.
- Location:
starlight-docs/subdirectory - Configured with base path:
/opensearch-agentops-website/getting-started - Completely isolated from main site to avoid conflicts
Created three starter pages in starlight-docs/src/content/docs/:
- index.md - Introduction to OpenSearch AgentOps
- quickstart.md - 5-minute quick start guide
- installation.md - Detailed installation instructions
Updated package.json with new scripts:
"build": "npm run build:main && npm run build:starlight && npm run merge:docs",
"build:main": "astro build",
"build:starlight": "cd starlight-docs && npm ci && npm run build",
"merge:docs": "mkdir -p dist/getting-started && cp -r starlight-docs/dist/* dist/getting-started/"Updated .github/workflows/deploy.yml to:
- Install dependencies for both projects
- Build main site
- Build Starlight docs
- Merge Starlight docs into
dist/getting-started/ - Deploy combined site to GitHub Pages
Added "Getting Started" link to main navigation in src/components/Navigation.astro:
- Desktop navigation
- Mobile navigation
- Links to
/getting-started/path
Updated README.md with:
- New "Getting Started Guide" section
- Updated project structure showing
starlight-docs/ - New build commands documentation
- Main Site: https://opensearch-project.github.io/opensearch-agentops-website/
- Documentation: https://opensearch-project.github.io/opensearch-agentops-website/docs/
- Getting Started: https://opensearch-project.github.io/opensearch-agentops-website/getting-started/
npm run dev
# Visit http://localhost:4321/opensearch-agentops-website/cd starlight-docs
npm run dev
# Visit http://localhost:4321/opensearch-agentops-website/getting-started/npm run build
npm run preview
# Visit http://localhost:4322/opensearch-agentops-website/All 569 tests continue to pass:
npm test- Isolation: Starlight runs in its own subdirectory with its own dependencies
- No Conflicts: Main site and Starlight don't share configuration or dependencies
- Clean Deployment: Both sites build separately and merge at deployment time
- Maintainability: Each site can be updated independently
- Scalability: Easy to add more Starlight sections in the future
- Add more pages to Getting Started guide
- Implement search across both documentation sites
- Add cross-linking between main docs and Getting Started
- Consider adding more Starlight sections (API Reference, Tutorials, etc.)
Committed as: 497dd62 - Add Starlight Getting Started docs
Pushed to: main branch