tailwindcss-dash-docset icon indicating copy to clipboard operation
tailwindcss-dash-docset copied to clipboard

Reverse index

Open jacobat opened this issue 2 years ago • 3 comments

Would it be possible to add a "reverse index" so that I could lookup the tailwind classes using this docset? It would be helpful to be able to be able to search for "flex-col" and get the documentation like you can on the Tailwind site.

jacobat avatar Oct 09 '22 18:10 jacobat

pretty sure it would be possible yeah. the TOC is generated here: https://github.com/godbout/tailwindcss-dash-docset/blob/c846336b4b46143110b470874e394885436301f9/app/Docsets/TailwindCSS.php#L240

so you would just need to grab whatever selector(s) for the attributes that you're looking for. but:

  1. that will pollute the index/search capabilities
  2. i have zero time and mental capacity to do it and test, etc. currently

godbout avatar Oct 10 '22 03:10 godbout

Got it. Thanks for the quick reply. And thanks for making this docset.

jacobat avatar Oct 10 '22 07:10 jacobat

let's keep this issue open so that when/if i have time, i have a look.

godbout avatar Oct 11 '22 03:10 godbout