Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TOC to README.md #628

Open
wants to merge 1 commit into
base: v1
Choose a base branch
from
Open

Conversation

ardumont
Copy link

Hello,

When reading readme in github, I like to be able to get directly to one
point or another without scrolling too much, I might not be alone.

This toc could help.

You can see the rendering https://github.com/ardumont/q/tree/add-toc-to-readme.

(Also this could help in copying url links)

Cheers,

@domenic
Copy link
Collaborator

domenic commented Dec 16, 2014

Run M-x markdown-toc/generate-toc

How do we do this ourselves, when the readme gets changed?

@ardumont
Copy link
Author

Hello,

How do we do this ourselves, when the readme gets changed?

as you use a node stack, you could use https://github.com/thlorenz/doctoc.

If you use emacs, you could use markdown-toc https://github.com/ardumont/markdown-toc...

There surely exists other means.

Cheers,

@domenic
Copy link
Collaborator

domenic commented Dec 16, 2014

It'd be important for any PR to add a npm script that will update the ToC, so we can do npm run update-toc.

@arikon
Copy link

arikon commented Dec 16, 2014

@domenic
Copy link
Collaborator

domenic commented Dec 16, 2014

@arikon I don't think that updates the README though. And http://documentup.com/kriskowal/q/ already has a TOC, so I assume @ardumont is specifically interested in the README.

@ardumont
Copy link
Author

@arikon I don't think that updates the README though. And http://documentup.com/kriskowal/q/ already has a TOC, so I assume @ardumont is specifically interested in the README.

Yes, indeed.
But automate this thing is a good idea for you as maintainers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants