andriusvelykis / reflow-maven-skin

Reflow is an Apache Maven site skin built on Bootstrap. It allows various structural and stylistic customizations to create a modern-looking Maven-generated website.
http://andriusvelykis.github.io/reflow-maven-skin/
Apache License 2.0
132 stars 54 forks source link

Support menu separators #6

Open andriusvelykis opened 11 years ago

andriusvelykis commented 11 years ago

Maven site descriptor does not seem to allow having menu separators: each item gets a name.

Support for menu separators can be added by assigning some name (or better, a regular expression!) to indicate that a menu item is a separator. This would allow creating separator-named items in site.xml which would be replaced by separator items when rendered.

Use Bootstrap separator in menus: <li class="divider"></li>

Possible configuration:

<menuSeparator>_separator</menuSeparator>

If regular expression matches a name of menu item, it is replaced by a separator item (dropping the link). So the following menu would have 2 items split by a seprator:

<menu name="My Menu">
  <item name="Introduction" href="index.html"/>
  <item name="_separator" href=""/>
  <item name="Related info" href="../another-project/index.html"/>
</menu>