Coder Social home page Coder Social logo

cisco-a / elemental Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jpmorganchase/elemental

0.0 0.0 0.0 17.93 MB

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

Home Page: https://stoplight.io/open-source/elements/

License: Apache License 2.0

Shell 0.13% JavaScript 0.86% TypeScript 98.84% CSS 0.17%

elemental's Introduction

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.

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

elemental's People

Contributors

dependabot-preview[bot] avatar lottamus avatar dependabot[bot] avatar mallachari avatar stoplightsupport avatar maria-mcparland avatar mmiask avatar p0lip avatar ssspear avatar paulatulis avatar marbemac avatar billiegoose avatar stoplight-bot avatar xvincentx avatar dotslashderek avatar kylejohnst avatar pamgoodrich avatar kaylachun avatar chohmann avatar depfu[bot] avatar daniel-white avatar amjcraft avatar marcelltoth avatar pytlesk4 avatar gavincraig avatar nezteb avatar jgreen44 avatar mnaumanali94 avatar jpmsrh avatar karol-maciaszek avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.