GithubHelp home page GithubHelp logo

arc-archive / raml-documentation-viewer Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 50 KB

A documentation viewer for RAML file. This is the main element to be used to display a documentation from a RAML file

License: Other

HTML 92.23% JavaScript 7.77%
raml raml-documentation-viewer raml-documentation api-console

raml-documentation-viewer's Introduction

Build Status

raml-documentation-viewer

Deprecatin notice

This element is depricated and it won't be maitained. A way of navigating the app has changed and tabbed view is not in the game. Please, use <raml-documentation-panel> directly.

<raml-documentation-viewer>

A documentation viewer for RAML file. This is the main element to be used to display the documentation from a RAML file.

Note: This element do not parse RAML file. It accepts parsed JSON output from the RAML JS parser*

This element accepts RAML parser's json output. It can be produced using the <raml-js-parser> element from ARC's catalog.

The computation of the selected object should be performed outside the element. Use the raml-path-selector with raml-path-to-object to get the data structure that this element can work with.

Example

Passing a RAML data into the element can be done by using the raml property. It's a recommended way of passing the data.

<raml-path-to-object selected-object="{{obj}}" ...></raml-path-to-object>
<raml-documentation-viewer
  raml="[[raml]]"
  selected-object="[[obj]]"
  selected-parent="[[selectedParent]]"></raml-documentation-viewer>

This element also uses the <raml-aware> element. It helps to set RAML data globally for the application and once it's set the documenation viewer will apply set data. To use this you have to set aware attribute with the name of <raml-aware>'s scope attribute.

<raml-documentation-viewer aware="doc-raml"></raml-documentation-viewer>
<raml-aware raml="{{raml}}" scope="doc-raml"></raml-aware>

Roadmap

This element will be updated in near future. The view will support tabs where the user can switch between the documentation and the types view. Further tabs are possible.

Styling

<raml-documentation-viewer> provides the following custom properties and mixins for styling:

Custom property Description Default
--raml-documentation-viewer Mixin applied to the element {}

raml-documentation-viewer's People

Contributors

arcauto avatar jarrodek avatar

Watchers

 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.