This package has been deprecated

Author message:

WARNING: This project has been renamed to @synx-ai/oas3-mdx. Install using @synx-ai/oas3-mdx instead.

@synx-ai/openapi2md
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

OpenAPI3 to Markdown converter

Travis Build Status GitHub Workflow Status npm npm !Coveralls

Convert OpenAPI v3 spec into a customizable directory of markdown files. The purpose of this tool is to boost documentation generation and seamlessly integrate them into static site generators.

Handlebars is used to provide fully configurable templating support.

Installation

yarn

yarn add @synx-ai/openapi2md

npm

npm install @synx-ai/openapi2md

Basic usage

CLI

Usage: openapi2md --specs [file] --target [target path] --templates [template path]

Options:
      --version   Show version number                                  [boolean]
  -s, --spec      OpenAPI specification                               [required]
  -o, --target    target build path                         [default: "./build"]
  -t, --template  templates paths                       [default: "./templates"]
      --help      Show help

JavaScript

const convert = require('openapi2md').default;

convert('./example/petstore.json', './build');

Roadmap

  • [X] Create a cli.js file to execute commands using yarn or npm
  • [X] Add more configurations (ie: custom templates)
  • [ ] MDX templating support for platform that supports React components.

Contribute

PR's are more than welcome and highly appreciated.

Package Sidebar

Install

npm i @synx-ai/openapi2md

Weekly Downloads

0

Version

0.1.5

License

MIT

Unpacked Size

24.4 kB

Total Files

13

Last publish

Collaborators

  • carlos_rivera