Giter Club home page Giter Club logo

danger-toc's Introduction

danger-toc

A plugin for danger.systems that makes sure your project’s README.md has a TOC.

Gem Version Build Status

Table of Contents

Installation

Add danger-toc to your Gemfile.

gem 'danger-toc', '~> 0.1'

Add toc.check to your Dangerfile. Make a pull request and see this plugin in action.

Usage

Configuration

The plugin supports following configuration options:

Danger::Toc.configure do |config|
  config.files = [ 'README.md' ]
  config.header = 'Table of Contents'
end

Methods and Attributes

Methods and attributes from this plugin are available in your Dangerfile under the toc namespace.

toc.files

List of files to ensure TOC in, default is README.md.

toc.header

The Table of Contents header, without #, default is Table of Contents.

toc.check

Run all checks with defaults.

Contributing

See CONTRIBUTING.

Copyright

Copyright (c) Daniel Doubrovkine, 2017

MIT License, see LICENSE for details.

danger-toc's People

Contributors

dblock avatar mr-dxdy avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.