Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 492 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 492 Bytes

Express GitHub Docs

Express Middleware for Generating Documentation from GitHub Repository.

Install

npm install express-github-docs

Usage

This is a simple usage example. It will serve files from docs directory.

var express = require('express');
var docs = require('express-github-docs');

var app = express();

app.use('/docs', docs('docs', {
    'ghUser': 'miskun',
    'ghRepo': 'express-github-docs',
    'ghDir': 'docs'
}));

app.listen(3000);