Project

danger-toc

0.01
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
A danger.systems plugin for your markdown TOC.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

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
  • Usage
    • toc.files
    • toc.header
    • toc.check!
  • Contributing
  • Copyright

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

Methods and settings 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.

config.files = [ 'README.md', 'DEV.md' ]

toc.header

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

config.header = 'Custom Table of Contents'

toc.check!

Run all checks.

Contributing

See CONTRIBUTING.

Copyright

Copyright (c) Daniel Doubrovkine, 2017-2019

MIT License, see LICENSE for details.