An open API service indexing awesome lists of open source software.

https://github.com/jmhooper/documentation_badge

Serves README badges showing the number of open documentation issues on a GitHub repo
https://github.com/jmhooper/documentation_badge

documentation-tool github-badge

Last synced: 3 months ago
JSON representation

Serves README badges showing the number of open documentation issues on a GitHub repo

Awesome Lists containing this project

README

          

# Documentation Badge

[![Documentation badge](http://documentation-badge.jonathanhooper.net/jmhooper/documentation_badge/badge.svg)](https://github.com/jmhooper/documentation_badge/labels/documentation)

This app provides GitHub README badges that display the number of open issues in a repo that have the label "documentation". The goal of this is to help maintainers keep an eye on doc rot in their repos.

A badge for a repo is made available at the `/:ower/:repo/badge.svg` path.

## Getting Started

This repo contains 3 major components:

- The code the generate and fetch documentation badges
- A web server to serve generated badges
- A frontend describing the site and for generating markdown to add badges to READMEs

This project has a few dependencies

- [Ruby 2.4.1](https://www.ruby-lang.org/)
- [Bundler](http://bundler.io/)
- [Node.js 6.x.x](https://nodejs.org/)
- [Yarn](https://yarnpkg.com/)
- [qmake](https://github.com/thoughtbot/capybara-webkit/wiki/Installing-Qt-and-compiling-capybara-webkit) (for capybara-webpack)

To get the whole thing running, do that folowing:

1. Clone the repo: `git clone git@github.com:jmhooper/documentation_badge.git`
1. Install dependencies with Yarn and Bundler: `bin/setup`
1. Build the frontend assets: `bin/build`
1. Start the app: `bin/start`

The application should be available at `localhost:9292`.

Note that `npm run watch` will run webpack in with the `--watch` which will regenerate frontend files as they are modified.

## Running Tests

The test suites is powered by [rspec](). To run the tests, run the following:

```
bundle exec rspec
```