Linux-For-Everyone / contribute-foss

Let's build an exhaustive Wiki page on how to contribute to the Linux and FOSS community, even WITHOUT knowing code!
https://www.linux4everyone.com
Creative Commons Attribution Share Alike 4.0 International
179 stars 28 forks source link

Auto-update TOC? #65

Open LinuxForEveryone opened 5 years ago

LinuxForEveryone commented 5 years ago

Does anyone know of a way we can have the Table of Contents auto-update when a new app / link / etc is added to an existing section of applications.md?

thefenriswolf commented 5 years ago

Github Pages sort of does this. It renders Markdown to a HTML website via Jekyll, so contribute-foss would be a full featured static website. But as far as I am concerned, it would need some eye candy for that

TeamLinux01 commented 5 years ago

I use VS Code and these extensions, which seems to auto-update MarkDown ToC when saving: DavidAnson.vscode-markdownlint yzane.markdown-pdf yzhang.markdown-all-in-one

Highly recommend using these, too: eamodio.gitlens esbenp.prettier-vscode jdforsythe.add-new-line-to-files medo64.render-crlf streetsidesoftware.code-spell-checker

As for auto-pulling a heading from another file, not sure how to do that.