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 🙏

© 2024 – Pkg Stats / Ryan Hefner

grunt-beautiful-docs

v0.1.1

Published

Generate beautiful markdown-based documentation using Grunt

Downloads

43

Readme

grunt-beautiful-docs Build Status Dependency Status NPM version

Generate beautiful markdown-based documentation using Grunt

Getting started

This plugin helps you to generate beautiful documentation based on markdown files using Beautiful docs from Grunt

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-beautiful-docs --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile:

grunt.loadNpmTasks('grunt-beautiful-docs');

This plugin requires Grunt ~0.4.0

The "bfdocs" task

Run this task with the grunt bfdocs command.

Task targets, files and options may be specified according to the grunt Configuring tasks guide

Usage example

Gruntfile configuration
grunt.initConfig({
  bfdocs: {
    documentation: {
      options: {
        title: 'My Beautiful Documentation',
        manifest: 'manifest.json',
        dest: 'documentation/',
        theme: 'default'
      }
    }
  }
})

Example manifest.json:

{
    "title": "My Beautiful Documentation",
    "files": [
      "README.md",
      "GUIDE.md",
      "CHANGELOG.md"
    ]
}

See Gruntfile and test for more configuration examples

Options

dest

Type: string Default: null

Path to the documentation output directory.

Usually you should use the Grunt file config object to define the destination output directory, but if you declare this option, it will have preference

manifest

Type: string|object|array Default: null

It can be an object like the manifest config or a string with the path to manifest.json file

For more information about manifest.json config options, see the Beautiful Docs documentation

server

Type: boolean Default: false

Create an HTTP server to access the generated documentation

port

Type: number Default: '8080'

The port on which the HTTP server shoud listen. It will be used only if the server option is true

watch

Type: boolean Default: false

Watch files for modifications and reload them automatically

theme

Type: string Default: 'default'

Name of bundled theme or path to custom theme

title

Type: string Default: 'Beautiful docs'

Title of the index page. It can be also defined from the manifest.json file

baseUrl

Type: string Default: ''

Base url of all links

indexOnly

Type: boolean Default: false

Only generate the index file. The last argument should be the filename of the index

manifestsOnly

Type: boolean Default: false

Do not treat the last argument as the output dir but also as a manifest

bfdocsBinary

Type: string Default: node_modules/beautiful-docs/bin/bfdocs

Use a custom beautiful-docs binary path

Contributing

Instead of a formal styleguide, take care to maintain the existing coding style.

Add unit tests for any new or changed functionality

Development

Clone the repository

$ git clone https://github.com/h2non/grunt-beautiful-docs.git && cd grunt-beautiful-docs

Install dependencies

$ npm install

Run tests

$ npm test

Release History

  • 0.1.0 2013-12-12
    • Initial release

To Do

Do you miss something? Open an issue or make a PR!

Authors

License

Copyright (c) 2013 Tomas Aparicio

Released under MIT license