Skip to content

devrev/fern-api-docs

Repository files navigation

DevRev Docs

Merging a change in this repository will update the following clients:

This repository contains

  • DevRev's Public OpenAPI spec & Beta OpenAPI spec
  • Fern configuration

API definition

The API Definition contains an OpenAPI specification adapted to be compatible with Fern. The specs are in /fern/apis.

To make sure that the definition is valid, you can use the Fern CLI.

npm install -g fern-api # Installs CLI
fern check # Checks if the definition is valid

Generators

Generators read in your API Definition and output artifacts (the TypeScript SDK Generator) and are tracked in generators.yml.

To trigger the generators run:

# publish generated files
fern generate --version <version>

Run a local instance

In the root of this repository:

cd custom-implementation/ && npm i && npm run build && cd ..
fern docs dev

Troubleshooting

If you run into errors, you can add the --log-level debug flag to get more information.

About

The Fern configuration for generating DevRev Docs.

Resources

Stars

Watchers

Forks

Contributors 37