learn-anything/books

Write a script that will automatically create and/or update Contents table for all curated lists

nikitavoloboev opened this issue · 0 comments

The script should:

  1. Make all headings with links in alphabetical order.
  2. If there is a Contents section already, it should update it referencing all the sections below in order.
  • If there is no Contents section it should create it.

This script (program) can be run on the readme.md as a builtin hook for all PRs and commits and changes I make. This way when I make a change Hazel script will automatically update Table of contents if there is any new section added or section removed.