dansinker / tacofancy

community-driven taco repo. stars stars stars.
The Unlicense
1.29k stars 446 forks source link

Fix INDEX.md, and add a Perl script to update it more conveniently #78

Closed dscho closed 10 years ago

dscho commented 10 years ago

My main contribution, really, is the file update-index.perl which updates INDEX.md according to what is currently committed.

dansinker commented 10 years ago

this may be duplicative, or relevant to work that @knowtheory is working on. Going to leave this open for now.

dscho commented 10 years ago

Fair enough. If you do not want my script (which works), maybe you merge at least https://github.com/sinker/tacofancy/pull/83 because it does fix the INDEX.md file.

dansinker commented 10 years ago

Yep, #83 has been merged. Thanks so much for the fixes. I want @knowtheory to weigh in on this script before we move forward with it. There are about three different "let's automate the index" initiatives moving right now, so a few different solutions to consider. Thanks so much for tackling though!

knowtheory commented 10 years ago

Yep @dscho's script does what it says on the tin. Reads the existing index, gets the section order from that, finds all markdown files in the repo & adds/removes lines from the index. Reading the existing index to get the sort order is handy/clever.

68 does a few things differently. The titles are pulled from the contents of recipe file (@dscho's title-izes the recipe's filename). #68 gets the sort order from an array inside the script. #68 also has a whole bunch of tagging related stuff now.

dansinker commented 10 years ago

OK, we're gonna go with #68. Sounds like @knowtheory is going to fork your concept of using the existing index to derive the section order, but generally his Coffeescript/Cake approach is a little more flexible. Join the discussion on #68. THANK YOU!!!