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

Script to generate a recursive ToC in the top-level readme #17

Open
moul opened this issue Aug 1, 2023 · 4 comments
Open

Script to generate a recursive ToC in the top-level readme #17

moul opened this issue Aug 1, 2023 · 4 comments
Assignees

Comments

@moul
Copy link
Member

moul commented Aug 1, 2023

To make it easier to find what we need using ctrl+f in the main doc.

It would be great to include both the title and a description.

@moul
Copy link
Member Author

moul commented Aug 2, 2023

Seems to be appropriate: https://github.com/MayasHaddad/markdown-toc-folders

@zivkovicmilos zivkovicmilos self-assigned this Aug 4, 2023
@zivkovicmilos
Copy link
Member

I tried out this tool, it does a recursive decent and generates the ToC, but the bullet points are off.

If for example a there is a H1 inside file.md, it doesn't give you information that it's under file.md, but just bundles the H1 with other H1s from other files. For ex:

file1.md:
# Hello

file2.md:
# World

The output would be:

# Hello (link)
# World (link

Does this look alright to you?
If we want something more fine grained, we'd need to write it ourselves

@zivkovicmilos
Copy link
Member

zivkovicmilos commented Aug 4, 2023

I will open up a draft PR and se can discuss

EDIT:
#21

@ajnavarro
Copy link
Collaborator

ajnavarro commented Aug 4, 2023

To make it easier to find what we need using ctrl+f in the main doc.

BTW, when you render the markdown to HTML search feature is available and it is quite good.

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

No branches or pull requests

3 participants