Automatically build README.md Table of Contents
See original GitHub issueRight now, it looks like doctoc is used to build the table of contents. Its a npm package, and isn’t referenced in the codebase, besides the README.md. Looks like people would have to install the package manually npm install -g doctoc
and then run it… I’m not sure if anyone does, or would remember to.
I think it would be cool if we could automate this somehow. Perhaps something other than doctoc could be used so that we don’t have to use npm here.
Issue Analytics
- State:
- Created 6 years ago
- Comments:17 (9 by maintainers)
Top Results From Across the Web
How do I create some kind of table of content in GitHub wiki?
For Wikis we now automatically generate a table of contents based on the Markdown headings. As illustrated here: Do you wiki? We just...
Read more >Table of Contents support in Markdown files | GitHub Changelog
Markdown files will now automatically generate a table of contents in the header when there are 2 or more headings. The table of...
Read more >Manually create a Markdown table of contents for your GitHub ...
Tutorial: Manually create a Markdown table of contents for your GitHub README · Looks neat and organized. · Clicking on the name of...
Read more >ekalinin/github-markdown-toc - README.md
gh-md-toc — is for you if you want to generate TOC (Table Of Content) for a README.md or a GitHub wiki page without...
Read more >Solved: How to write a table of contents in a Readme.md?
Solved: Hi, I'm trying to add a table of contents into a Readme.md for one of my repositories but I can't find a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Understandable, like I said, I use it at my work a lot, so I have never really had input on how others feel about it. I’m glad you brought up the concern tho because I believe it’s totally valid. I think in some ways that’s why I didn’t make a pr with it when I made this issue. If it’s not a route we want to take, that’s fine.
A GitHub issue probably isn’t the best medium to debate this kind of thing, but I expect someone else’s code to execute when I run a test suite. I don’t expect that code to be able to run in the future any time I use
git commit
. I think that’s where it breaks down for me. This is also why git does not allow the repository to directly specify the pre-commit hook, I bet.I also think it’s different to require a team of paid developers, working on a project, to use a specific commit hook, and to expect the same thing of open source contributors.