This directory contains the Docusaurus-based documentation for Adaptly.
- Node.js 18+
- npm or yarn
cd docs
npm installnpm startThis starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
npm run buildThis command generates static content into the build directory and can be served using any static contents hosting service.
The documentation is automatically deployed to GitHub Pages when changes are pushed to the main branch. The deployment is handled by the GitHub Actions workflow in .github/workflows/deploy-docs.yml.
docs/
├── docs/ # Documentation content
│ ├── intro.md # Homepage
│ ├── quick-start.md # Quick start guide
│ ├── component-registry.md
│ ├── llm-providers.md
│ ├── storage-service.md
│ ├── advanced-features.md
│ ├── troubleshooting.md
│ └── api/ # API documentation
│ ├── core-components.md
│ └── types.md
├── src/ # Source files
├── static/ # Static assets
├── docusaurus.config.ts # Docusaurus configuration
├── sidebars.ts # Sidebar configuration
└── package.json # Dependencies
The main configuration is in docusaurus.config.ts. Key settings:
- URL:
https://gauravfs-14.github.io - Base URL:
/adaptly/ - Organization:
gauravfs-14 - Project:
adaptly
The sidebar is configured in sidebars.ts with the following structure:
- Introduction - Homepage and quick start
- Guides - Component registry, LLM providers, storage, advanced features, troubleshooting
- API Reference - Core components and types
- Create a new
.mdfile in thedocs/directory - Add frontmatter with
sidebar_positionfor ordering - Update
sidebars.tsto include the new page
API documentation goes in the docs/api/ directory and should include:
- Complete type definitions
- Usage examples
- Parameter descriptions
- Return value documentation
The documentation is automatically deployed to GitHub Pages when:
- Changes are pushed to the
mainbranch - The changes affect files in the
docs/directory - The GitHub Actions workflow runs successfully
If you need to deploy manually:
cd docs
npm run build
npm run deploy- Build fails: Check that all markdown files have proper frontmatter
- Sidebar not updating: Ensure
sidebars.tsis properly configured - Images not loading: Place images in
static/img/and reference as/img/filename
- Port conflicts: Use
npm start -- --port 3001to use a different port - Cache issues: Clear browser cache or use incognito mode
- Hot reload not working: Restart the development server
- Make changes to the documentation
- Test locally with
npm start - Create a pull request
- The documentation will be automatically deployed when merged
This documentation is part of the Adaptly project and follows the same MIT license.