A mono-repo with a set a gatsby plugins that can be used to build API docs from an OpenAPI specification.
NOTE: This repo is in the very early stages of development.
- gatsby-source-openapi: Parse an OpenAPI 3 specification and create the gatsby graphql nodes.
- gatsby-theme-openapi-core: Creates the theme pages.
- gatsby-theme-openapi-theme-ui: Renders the OpenAPI docs using
theme-ui
.
- example-theme-ui: An example site using the gatsby-theme-openapi-theme-ui theme
- Provide a framework for building API docs with full customisation capabilities (not just tweaking theme variables)
- Provide some good default themes
- Provide features to render in a single page, or multiple pages
- Provide a CLI utility to easily bootstrap/scaffold
This is a lerna project. Common dependencies are hoisted into the root node_modules
directory. This means you must re-bootstrap the project (npm run boostrap
) after installing any dependencies into any of the packages.
# install lerna dependencies
npm install
# install & hoist package dependencies (this can take a long time)
npm run bootstrap
# run the example site
npm start
npm run build
Error sourcing OpenAPI data: security.map(...).flat is not a function
This usually means you're using an older version of node. Use the version as specified in .nvmrc
or within package.json
.
MIT License
Copyright (c) 2020 Richard Willis