Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 6 additions & 13 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,15 @@ jobs:
node-version-file: ".node-version"

- name: bundle
uses: hilary/openapi-cli-bundle-action@v0.0.2
with:
base-spec: "./lob-api-public.yml"
bundled-spec: "dist/lob-api-bundled.yml"

- name: build zero-dependency docs
shell: bash
run: |
set -x
npm i redoc-cli --save-dev && npx patch-package
npm run redoc
npm ci
npm run bundle

- name: build docs
shell: bash
run: npm run redoc

- name: build postman collection
uses: ./actions/contract_tests
Expand All @@ -37,8 +35,3 @@ jobs:
env:
LOB_API_TEST_TOKEN: ${{ secrets.LOB_API_TEST_TOKEN }}
LOB_API_LIVE_TOKEN: ${{ secrets.LOB_API_LIVE_TOKEN }}

- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_REF#refs/heads/}" >> "$GITHUB_OUTPUT"
id: extract_branch
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
shell: bash
run: |
set -x
npm i prettier
npm run pretty
npm ci
npm run pretty:check

- name: integration tests
shell: bash
Expand Down
33 changes: 32 additions & 1 deletion .redocly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,36 @@ rules:
boolean-parameter-prefixes: off
no-invalid-media-type-examples:
severity: warn
disallowAdditionalProperties: false
allowAdditionalProperties: true
no-enum-type-mismatch: off
openapi:
noAutoAuth: true
maxDisplayedEnumValues: 15
expandResponses: "200,201"
jsonSampleExpandLevel: 3
requiredPropsFirst: true
hideDownloadButton: true
theme:
colors:
primary:
main: "#27333c"
sidebar:
backgroundColor: "#f7f9fa"
typography:
code:
backgroundColor: "#ebf0f6"
fontFamily: JetBrainsMono
color: "#27333c"
links:
color: "#0099d7"
textDecoration: none
fontFamily: "Larsseit, sans-serif"
fontSize: "16px"
headings:
fontFamily: "Larsseit, sans-serif"
fontWeight: "300"
codeBlock:
backgroundColor: "#ecf0f5"
rightPanel:
backgroundColor: "#f7f9fa"
textColor: "#416581"
206 changes: 103 additions & 103 deletions actions/redoc/template.hbs

Large diffs are not rendered by default.

3,355 changes: 1,237 additions & 2,118 deletions dist/lob-api-bundled.yml

Large diffs are not rendered by default.

1,546 changes: 753 additions & 793 deletions dist/lob-api-postman.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Developer Documentation

This directory contains a zero-dependency, single file version of our new developer docs for Lob API v1.
This directory contains a single file version of our developer docs for Lob API v1.

## Github Pages

The copy in main is served by Github pages at https://lob.github.io/lob-openapi.

## How it is built

The docs are generated from the OpenAPI v3 description in this repo using `redoc-cli`. See also the `redoc` script in
The docs are generated from the OpenAPI v3 description in this repo using `@redocly/cli`. See also the `redoc` script in
`package.json`. The file is updated on each push to github.

You can generate the file yourself at any time by running `npm run redoc`.
Expand Down
9,866 changes: 4,910 additions & 4,956 deletions docs/index.html

Large diffs are not rendered by default.

42 changes: 0 additions & 42 deletions docs/redocOptions.json

This file was deleted.

Loading
Loading