gh-markdown-viewer

1.0.0 • Public • Published

github-markdown-viewer

A react component built for the very specific use case of viewing markdown files in a github respository. Just provide a url prop and it will query Github's API and find all .md files in the repo.

Why?

If you store system documentation in a github repo, this viewer comes in handy.

I built this for a project I'm working on (at the time of writing this), where system documentation is kept in a github repo.

Installation

npm i gh-markdown-viewer

Usage

import TreeViewer from '../src/Components/TreeViewer';

<TreeViewer url={'https://api.github.com/repos/<GITHUB_USERNAME>/<REPO_NAME>/contents'}></TreeViewer>

Feel free to fork and reuse.

Readme

Keywords

none

Package Sidebar

Install

npm i gh-markdown-viewer

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

12.1 kB

Total Files

17

Last publish

Collaborators

  • vincenpm