question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Automatically build README.md Table of Contents

See original GitHub issue

Right 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:closed
  • Created 6 years ago
  • Comments:17 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
bxm156commented, Feb 28, 2018

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.

2reactions
scoatescommented, Feb 28, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found