The official developer documentation site for Glean. This site provides comprehensive documentation for Glean's APIs, SDKs, and developer tools.
This documentation site includes:
- API Reference: Complete documentation for Glean's Client API and Indexing API
- Getting Started Guides: Step-by-step tutorials for new developers
- API Client Documentation: Libraries for Python, Java, Go, and TypeScript
- Integration Guides: Examples for popular frameworks and platforms
- MCP (Model Context Protocol): Documentation for Glean's MCP implementation
- Changelog: Release notes and updates
This project uses mise to manage tool versions. Install mise first, then run:
mise installThis will automatically install the correct versions of Node.js and pnpm as specified in mise.toml.
Clone the repository and install dependencies:
git clone <repository-url>
cd glean-developer-site
pnpm installStart the development server:
pnpm startThis command starts a local development server and opens your browser to http://127.0.0.1:8888. Most changes are reflected live without having to restart the server.
pnpm start- Start development serverpnpm build- Build the site for productionpnpm serve- Serve the built site locallypnpm clear- Clear Docusaurus cache
The project includes automated link checking to ensure all documentation links are valid:
Check production site:
pnpm links:checkCheck local build:
# Automatically builds, serves on port 8888, and checks links
pnpm links:check:localThis command automatically builds the site, starts a server on port 8888, runs the link checker, and cleans up when done.
Note: Link checking requires lychee. Install it with:
brew install lychee # macOS
# or see https://github.com/lycheeverse/lychee for other platformsThe link checker validates all links in the site by:
- Fetching the sitemap.xml (only available in production builds)
- Crawling each page to find and validate all links
- Excluding known problematic URLs (auth-required sites, placeholders, etc.)
├── docs/ # Documentation content
│ ├── api/ # API reference documentation
│ ├── api-info/ # API authentication and setup guides
│ ├── get-started/ # Getting started guides
│ ├── guides/ # Feature guides and tutorials
│ └── libraries/ # SDK and library documentation
├── src/ # React components and utilities
│ ├── components/ # Custom React components
│ ├── theme/ # Docusaurus theme customizations
│ └── utils/ # Utility functions
├── static/ # Static assets
├── changelog/ # Changelog entries
├── openapi/ # OpenAPI specifications
└── scripts/ # Build and utility scripts
Use the pnpm command to create new changelog entries:
pnpm changelog:newThe site automatically generates API documentation from OpenAPI specifications located in the openapi/ directory.
The build optionally includes a Google verification meta tag. Set the
GOOGLE_SITE_VERIFICATION environment variable with your verification token if
you want this tag injected at build time:
export GOOGLE_SITE_VERIFICATION=your-token
pnpm buildIf the variable is not set, the tag is omitted.
Run the build command to test for any issues:
pnpm buildThis will catch any broken links, missing imports, or other build-time errors.
This project is licensed under the same terms as the Glean platform.
For questions about the documentation or to report issues:
- Create an issue in this repository
- Check the Glean Help Center