Skip to content

stainless/docs-platform

Repository files navigation

Stainless API Docs Monorepo

Getting started

  1. Login via the cli: stl auth login 2. Instructions for installing the cli can be found here
  2. Install dependencies: pnpm install
  3. Create a .env file within the docs-ui package.
    • Set STAINLESS_ROOT to the path to your stainless monorepo.
  4. Verify you can build the app: pnpm build
  5. Run the dev server: pnpm run dev

Running the app

Running all apps

pnpm run dev

Running just a single app

pnpm run dev --filter dev-docs

Using custom specs

  1. Create a test-specs folder within apps/dev-docs. This folder is ignored by git and can house any test specs you want to use
  2. Set the following environment variables
    • OPENAPI_PATH="./test-specs/PATH_TO_YOUR_OPENAPI_SPEC"
    • STAINLESS_CONFIG_PATH="./test-specs/PATH_TO_YOUR_STAINLESS_CONFIG"
  3. Run the dev server. @stainless-api/docs will respect those env vars while running development.

Publishing to npm

We use changesets to handling publishing

About

REST API, SDK, and narrative docs that automatically stay in sync with your actual API. Built on Astro.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors