Teamwork / godocgen

Generate self-contained HTML documentation with godoc.
MIT License
3 stars 0 forks source link

Automatic grouping based on tags/names #13

Open arp242 opened 6 years ago

arp242 commented 6 years ago

Would be best if we could add rules for this, for example:

autogroup Desk name^=desk
autogroup Desk tags*=teamwork-desk

Using CSS attribute selectors may be a good idea?

https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors

Maybe make a generic matching library that can be called as:

matches := cssmatch.Match("tags^=desk", []map[string][]string{
    map[string][]string{"tags": []string{"desk"}},
    map[string][]string{"tags": []string{"projects"}},
})

Or maybe something like that already exists?