Click on Use this template to copy the xyd-js documentation starter kit. This starter kit contains examples including:
- Guide pages with modern markdown
- Navigation and sidebar configuration
- Customizations and theming
- Use of popular components and icons
- API Reference pages with OpenAPI integration
xyd is a modern, batteries-included documentation engine that redefines the documentation experience by making it intuitive, flexible, and enjoyable. Built for developers who want to create beautiful documentation quickly.
- β‘ Fast Development - Hot reload with instant preview
- π¨ Modern Design - Beautiful, responsive documentation sites
- π Rich Content - Support for markdown, code blocks, and interactive components
- π API Integration - Built-in OpenAPI/Swagger documentation support
- π Easy Deployment - Static site generation for any hosting platform
- π― Developer Friendly - Simple CLI and configuration
Make sure you have Node.js installed on your system.
Install the xyd-js CLI globally:
bun add -g xyd-jsRun the development server at the root of your documentation (where docs.json is located):
xydThis will start a local development server with hot reload enabled. Your documentation will be available at http://localhost:5175 (or the next available port).
Generate static files for deployment:
xyd buildThis produces static files within .xyd/build/client which you can deploy to any static hosting platform.
starter/
βββ docs.json # Main configuration file
βββ openapi.json # OpenAPI specification
βββ docs/ # Documentation pages
βββ api-reference/ # API reference pages
βββ public/ # Static assets
The main configuration file docs.json controls:
- Theme: Customize colors, logos, and branding
- Navigation: Header and sidebar structure
- API Reference: OpenAPI integration settings
- Banner: Custom announcements and notifications
Since xyd-js generates static files, you can deploy to any static hosting platform:
- Vercel: Connect your repository and deploy
- GitHub Pages: Push to a
gh-pagesbranch - AWS S3: Upload the
.xyd/build/clientdirectory - Any CDN: Serve the static files from your preferred provider
To learn more, check out our Deploy Samples.
Create new markdown files in the docs/ directory and update the navigation in docs.json.
Customize the theme by modifying the theme section in docs.json:
{
"theme": {
"name": "picasso",
"logo": {
"light": "/public/assets/logo.svg",
"dark": "/public/assets/logo-dark.svg"
}
}
}Add your OpenAPI specification to openapi.json and configure the API reference in docs.json.
- Dev server won't start: Run
xyd installto reinstall dependencies - Page loads as 404: Make sure you're running the command in a folder with
docs.json - Build fails: Check that all referenced files exist and are properly formatted
- Styling issues: Verify that your theme configuration in
docs.jsonis valid
Found a bug or have a feature request? Please open an issue or submit a pull request to help improve xyd-js.
This starter kit is open source and available under the MIT License.