bryanbraun / middleman-navtree

For building navigation trees & menus in Middleman.
MIT License
45 stars 17 forks source link

Support Directory Indexes #12

Open bryanbraun opened 8 years ago

bryanbraun commented 8 years ago

This gem does not currently support directory indexes. That means that directory names cannot be links, only non-linked containers for grouping links.

Some people have use cases where linked directory names would be nice. Resolving this issue would fix:

Approach It would be nice for this to smartly detect if a directory has an index file, but we can't as it's built right now. It's currently a recursive function that always creates the directory markup as a non-linked item. By the time we've entered a directory to see if it has an index file, the markup for the parent has already been written. We have to figure out a way to refactor this, or set directory indexes as an configurable option. The configurable option thing is kind of a bummer. It could be made a bit more smart by listening in for Middleman's activate :directory_indexes and swapping modes accordingly.

I'm open to suggestions. Not sure on the timeline of when I can address this, but it is a feature I'm interested in, if anybody wants to take a crack at it.

AntonKL commented 8 years ago

+1

equinusocio commented 8 years ago

This gem is dead? Any update about this?

bryanbraun commented 8 years ago

No updates on this feature as of yet.

I don't consider the gem "dead", given the attention I give to PRs and issues but I'm not actively developing this feature.