Skip to content

Build beautiful, interactive API Docs with embeddable React or Web Components, powered by OpenAPI and Markdown.

License

Notifications You must be signed in to change notification settings

jpmorganchase/elemental

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1f8267c · Mar 25, 2024
Nov 15, 2023
Nov 16, 2023
Nov 15, 2023
Sep 26, 2023
Nov 16, 2023
Apr 10, 2023
Sep 22, 2023
Mar 25, 2024
Mar 21, 2024
Nov 15, 2023
Nov 15, 2023
Mar 20, 2024
Apr 12, 2022
Jul 22, 2020
Jul 7, 2022
Jan 11, 2021
Nov 22, 2022
Sep 17, 2020
Mar 21, 2024
Aug 9, 2023
Jan 26, 2021
Aug 9, 2023
Nov 16, 2023
Mar 25, 2024
Jul 22, 2021
Jul 1, 2022
Nov 22, 2022
Oct 24, 2023
Aug 9, 2023
Jul 28, 2021
Apr 21, 2022
Feb 5, 2024

Repository files navigation

JP Morgan Elemental

This repo is a fork of stoplight elements. The plan for this repo is to update elements to allow us to rapidly deploy features we require and then look to merge back to elements. We have also added a vscode-extension package to this repository. This will allow developers to view elemental directly from vscode.

JP Morgan Features developed

  • Callbacks being rendered.
  • Default try it out server and removal of server dropdown from try it out section.
  • useCustomNav is optional and can be set to true to hide stoplights default sidebar.
  • useGetOasNavTree parses an api spec and returns an array of grouped endpoints and schemas.
  • hideInlineExamples is optional and can enable the global examples dropdown to drive all examples whilst disabling the inline example selects.

How to use

Instead of installing the stoplight component use:

$ npm install @jpmorganchase/elemental

Then follow stoplights readme at here

Using try it out default server

Make sure you've installed the above dependency and then change the code to:

import { API } from '@jpmorganchase/elemental';

<API
  apiDescriptionUrl="https://api.apis.guru/v2/specs/github.com/1.1.4/openapi.yaml"
  router="hash"
  tryItOutDefaultServer="https://tryItOutServer.server.com/"
  useCustomNav={true}
/>;

The try it out default server needs to be included in your api description document for this to work. If it is not found it will default to the first server in the spec.

Deploying the packages

We use Lerna to deploy. Follow these steps:

  1. Have all your code in main
  2. Create release branch from main like 'release/'
  3. Checkout your new branch locally
  4. Run 'yarn && yarn run version'
  5. Commit & push your changes
  6. Check the github actions 'Publish Package to npmjs' runs successfully
  7. PR your version upgrade back to main

About

Build beautiful, interactive API Docs with embeddable React or Web Components, powered by OpenAPI and Markdown.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 98.8%
  • Other 1.2%