npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

rp-markdown-docs

v1.0.8

Published

A modern, beautiful documentation generator that converts markdown files into interactive HTML documentation sites

Readme

Markdown Documentation Generator

A modern, beautiful documentation generator that converts markdown files into interactive HTML documentation sites. Built with performance, accessibility, and user experience in mind.

Documentation Generator Version License

🚀 Quick Start

Installation

# Install globally
npm install -g rp-markdown-docs

# Or install locally
npm install --save-dev rp-markdown-docs

# Or use with npx (no installation required)
npx rp-markdown-docs init my-docs
npx mdocs generate --watch

Initialize a New Project

# Create a new documentation project
mdocs init my-docs

# Navigate to the project
cd my-docs

# Start developing
mdocs generate --watch

Generate Documentation

# Generate from current directory
mdocs generate

# Generate from specific directory
mdocs generate ./docs --output ./dist

# Watch for changes during development
mdocs generate --watch

Serve Locally

# Serve generated documentation
mdocs serve

# Serve on specific port
mdocs serve --port 8080 --open

📁 Project Structure

my-docs/
├── docs/                    # Your markdown files
│   ├── index.md            # Homepage
│   ├── getting-started/
│   │   └── installation.md
│   ├── api/
│   │   └── overview.md
│   └── guides/
│       └── configuration.md
├── mdocs.config.js         # Configuration file
└── package.json

⚙️ Configuration

Create a mdocs.config.js file in your project root:

module.exports = {
  // Basic settings
  title: 'My Documentation',
  description: 'Comprehensive documentation for my project',
  baseUrl: '/',
  
  // Theme customization
  theme: {
    primaryColor: '#3B82F6',
    accentColor: '#10B981',
    darkMode: true
  },
  
  // Navigation
  navigation: {
    logo: 'My Docs',
    links: [
      { text: 'GitHub', url: 'https://github.com/username/repo' },
      { text: 'NPM', url: 'https://npmjs.com/package/my-package' }
    ]
  },
  
  // Features
  features: {
    search: true,
    tableOfContents: true,
    lastModified: true
  }
};

📝 Markdown Features

Frontmatter Support

Add metadata to your markdown files:

---
title: Getting Started
description: Learn how to get started with our platform
tags: [guide, beginner]
author: John Doe
date: 2024-01-15
---

# Getting Started

Your content here...

Code Syntax Highlighting

Supports all major programming languages:

```javascript
function hello(name) {
  console.log(`Hello, ${name}!`);
}
```

```python
def hello(name):
    print(f"Hello, {name}!")
```

```bash
npm install my-package
```

Advanced Markdown Features

  • ✅ Tables
  • ✅ Task lists
  • ✅ Code syntax highlighting
  • ✅ Emoji support

🎨 Theming

Theme Customization

Customize colors and appearance:

module.exports = {
  theme: {
    primaryColor: '#3B82F6',
    accentColor: '#10B981',
    darkMode: true
  }
};

🔍 Features

  • Search - Full-text search with fuzzy matching
  • Table of Contents - Automatic TOC generation with active section highlighting
  • Theming - Multiple themes with dark/light mode support
  • Responsive Design - Mobile-friendly interface
  • Code Highlighting - Syntax highlighting for multiple languages
  • Live Reload - Watch mode for development

📦 Build & Deploy

Build for Production

# Build optimized static files
mdocs build

# Build with custom config
mdocs build --config ./custom.config.js

Deploy to Popular Platforms

Netlify

# Build command
mdocs build

# Publish directory
dist

Vercel

{
  "buildCommand": "mdocs build",
  "outputDirectory": "dist"
}

GitHub Pages

# .github/workflows/docs.yml
name: Deploy Docs
on:
  push:
    branches: [main]
jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-node@v3
        with:
          node-version: 18
      - run: npm ci
      - run: mdocs build
      - uses: peaceiris/actions-gh-pages@v3
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          publish_dir: ./dist

🛠️ CLI Reference

Commands

# Initialize new project
mdocs init [directory] [options]

# Generate documentation
mdocs generate [input] [options]

# Build for production
mdocs build [input] [options]

# Serve locally
mdocs serve [directory] [options]

Options

# Global options
--config, -c     Configuration file path
--help, -h       Show help
--version, -v    Show version

# Generate options
--output, -o     Output directory
--watch, -w      Watch for changes
--base-url       Base URL for the site

# Serve options
--port, -p       Port to serve on
--open, -o       Open browser automatically

🎯 Examples

Basic Documentation Site

# Initialize
mdocs init my-docs

# Add content
echo "# Welcome" > docs/index.md
echo "# Getting Started" > docs/getting-started.md

# Generate and watch
mdocs generate --watch

Documentation with Code Examples

---
title: Getting Started
description: Learn how to get started
---

# Getting Started

Welcome to the documentation!

## Installation

```bash
npm install my-package

Basic Usage

import { MyPackage } from 'my-package';

const instance = new MyPackage();
instance.init();

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

Development Setup

# Clone the repository
git clone https://github.com/ratpi-studio/markdown-doc-generator.git

# Install dependencies
npm install

# Run in development mode
npm run dev

# Run tests
npm test

# Build for production
npm run build

🙏 Acknowledgments

📄 License

MIT License - see the LICENSE file for details.