Thanks for contributing to the LiteLLM documentation! This guide will help you run the docs site locally, make changes, and verify them before opening a PR.
git clone https://github.com/BerriAI/litellm-docs.git
cd litellm-docsnpm installnpm startOpen http://localhost:3000.
The site uses Docusaurus 3, so most docs and blog changes reload automatically while the dev server is running.
Most documentation pages live in docs/.
Blog posts live in blog/.
Custom standalone pages live in src/pages/.
If you add, remove, or move docs pages, check whether sidebars.js needs to be updated.
Before opening a PR, run:
npm run buildThis catches broken links, invalid MDX, and other Docusaurus build issues.
Create a branch:
git checkout -b docs/your-change-nameCommit your changes:
git add .
git commit -m "docs: update contributing guide"Push your branch and open a PR against BerriAI/litellm-docs.