{"id":15484873,"url":"https://github.com/dblock/danger-toc","last_synced_at":"2025-09-20T04:31:58.731Z","repository":{"id":59152712,"uuid":"109551290","full_name":"dblock/danger-toc","owner":"dblock","description":"A danger.systems plugin for your markdown TOC.","archived":false,"fork":false,"pushed_at":"2019-07-28T20:57:15.000Z","size":248,"stargazers_count":5,"open_issues_count":7,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-12T00:50:16.069Z","etag":null,"topics":["danger","danger-plugin","kramdown","markdown"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dblock.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-05T04:19:43.000Z","updated_at":"2025-01-11T03:18:06.000Z","dependencies_parsed_at":"2022-09-13T11:01:14.869Z","dependency_job_id":null,"html_url":"https://github.com/dblock/danger-toc","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dblock%2Fdanger-toc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dblock%2Fdanger-toc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dblock%2Fdanger-toc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dblock%2Fdanger-toc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dblock","download_url":"https://codeload.github.com/dblock/danger-toc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233626901,"owners_count":18704811,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["danger","danger-plugin","kramdown","markdown"],"created_at":"2024-10-02T05:53:16.679Z","updated_at":"2025-09-20T04:31:53.388Z","avatar_url":"https://github.com/dblock.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# danger-toc\n\nA plugin for [danger.systems](http://danger.systems) that makes sure your project’s `README.md` has a TOC.\n\n[![Gem Version](https://badge.fury.io/rb/danger-toc.svg)](https://badge.fury.io/rb/danger-toc)\n[![Build Status](https://travis-ci.org/dblock/danger-toc.svg?branch=master)](https://travis-ci.org/dblock/danger-toc)\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n  - [toc.files](#tocfiles)\n  - [toc.header](#tocheader)\n  - [toc.check!](#toccheck)\n- [Contributing](#contributing)\n- [Copyright](#copyright)\n\n## Installation\n\nAdd `danger-toc` to your Gemfile.\n\n```\ngem 'danger-toc', '~\u003e 0.1'\n```\n\nAdd `toc.check` to your Dangerfile. Make a pull request and see this plugin in action.\n\n\u003cimg src='images/toc-missing.png'\u003e\n\n## Usage\n\nMethods and settings from this plugin are available in your `Dangerfile` under the `toc` namespace.\n\n### toc.files\n\nList of files to ensure TOC in, default is `README.md`.\n\n```ruby\nconfig.files = [ 'README.md', 'DEV.md' ]\n```\n\n### toc.header\n\nThe Table of Contents header, without `#`, default is `Table of Contents`.\n\n```ruby\nconfig.header = 'Custom Table of Contents'\n```\n\n### toc.check!\n\nRun all checks.\n\n## Contributing\n\nSee [CONTRIBUTING](CONTRIBUTING.md).\n\n## Copyright\n\nCopyright (c) Daniel Doubrovkine, 2017-2019\n\nMIT License, see [LICENSE](LICENSE.txt) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdblock%2Fdanger-toc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdblock%2Fdanger-toc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdblock%2Fdanger-toc/lists"}