{"id":21013750,"url":"https://github.com/pyro2927/tocify","last_synced_at":"2026-03-07T17:04:07.203Z","repository":{"id":11236402,"uuid":"13630895","full_name":"pyro2927/tocify","owner":"pyro2927","description":"Generate a markdown-formatted table of contents from an existing file","archived":false,"fork":false,"pushed_at":"2013-10-22T03:23:14.000Z","size":144,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-05T07:15:07.936Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/pyro2927.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-16T20:48:15.000Z","updated_at":"2018-06-05T12:53:36.000Z","dependencies_parsed_at":"2022-09-14T19:41:18.386Z","dependency_job_id":null,"html_url":"https://github.com/pyro2927/tocify","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyro2927%2Ftocify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyro2927%2Ftocify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyro2927%2Ftocify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyro2927%2Ftocify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyro2927","download_url":"https://codeload.github.com/pyro2927/tocify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253720685,"owners_count":21953102,"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":[],"created_at":"2024-11-19T09:44:06.096Z","updated_at":"2026-03-07T17:04:02.185Z","avatar_url":"https://github.com/pyro2927.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tocify\n\nTocify aims to create a table of contents for your markdown files.  By default the generated ToC will be dumped to STDOUT.  Add the `-i` or `--inject` flag to put the table of contents back into your file.\n\n## Table of Contents\n* [Installation](#installation)\n* [Usage](#usage)\n* [Sample Output](#sample-output)\n* [Manual Insertion](#manual-insertion)\n    * [OS X](#os-x)\n    * [Linux](#linux)\n* [Contributing](#contributing)\n\n_Generated with [tocify](https://github.com/pyro2927/tocify)_\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'tocify'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install tocify\n\n## Usage\n\nBy default tocify will check for a file named `README.md` in the current directory.\n\n    tocify\n\nOtherwise you can pass in a filename as a parameter.\n\n    tocify OTHERFILE.md\n \nTo automatically insert the ToC into your README, run\n\n    tocify -i\n\n## Sample Output\n \nWhen running `tocify` on this file, you get:\n\n    ## Table of Contents\n    * [Installation](#installation)\n    * [Usage](#usage)\n    * [Sample Output](#sample-output)\n    * [Manual Insertion](#manual-insertion)\n        * [OS X](#os-x)\n        * [Linux](#linux)\n    * [Contributing](#contributing)\n\n## Manual Insertion\n\nIf you want to manually insert the generated ToC you can.  An easy way is to pipe the output of `tocify` into your paste bufffer.\n\n### OS X\n\n    tocify | pbcopy\n\n### Linux\n\n    tocify | xclip\n\n_Requires xclip to be installed_\n \n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyro2927%2Ftocify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyro2927%2Ftocify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyro2927%2Ftocify/lists"}