- Login via the cli:
stl auth login2. Instructions for installing the cli can be found here - Install dependencies:
pnpm install - Create a
.envfile within thedocs-uipackage.- Set
STAINLESS_ROOTto the path to your stainless monorepo.
- Set
- Verify you can build the app:
pnpm build - Run the dev server:
pnpm run dev
pnpm run dev
pnpm run dev --filter dev-docs
- Create a
test-specsfolder withinapps/dev-docs. This folder is ignored by git and can house any test specs you want to use - Set the following environment variables
- OPENAPI_PATH="./test-specs/PATH_TO_YOUR_OPENAPI_SPEC"
- STAINLESS_CONFIG_PATH="./test-specs/PATH_TO_YOUR_STAINLESS_CONFIG"
- Run the dev server.
@stainless-api/docswill respect those env vars while running development.
We use changesets to handling publishing