Msb3 Maven Skin

Responsive Apache Maven skin built on Bootstrap 3.3

Get it now

To use Msb3 skin in your Maven site, add it to site.xml:

<skin>
  <groupId>pl.matsuo.maven.skins</groupId>
  <artifactId>msb3-maven-skin</artifactId>
  <version>0.1.1</version>
</skin>

Furthermore, the skin requires accompanying Msb3 Velocity tools as a dependency as well as Apache Velocity 1.7. Add them as dependencies to maven-site-plugin.

Full usage instructions »

Responsive layouts

Write your pages in APT or Markdown, then restructure them using Msb3 skin layouts:

  • Carousel - spinning image slideshow
  • Thumbnails - showcase your image gallery
  • Columns - multi-column text
  • Sidebar - wrap into a sidebar
  • Body - text as it has been written

Partition the page into sections using <hr/> elements, and define preferred layouts for each section in site.xml. Msb3 skin is responsive thanks to Bootstrap, so the layouts will be rearranged automatically for readability on small screens.

Read more about layouts in the documentation »

Themes

The skin theme can be switched easily: just select a Bootstrap theme to give an easy makeover for your Maven site.

Need to change something? Extend the skin with custom site.css file in your project, and reuse it for multi-module site.

How to select a theme »

Configure

Msb3 is very configurable: many features and components can be disabled, and optional enhancements enabled using configuration in site.xml:

  • Table of contents - display ToC for each page: top bar or sidebar
  • Menus - filter Maven menus and select what to display in top or bottom navigation
  • Code highlight - syntax colouring for code snippets
  • Image preview - display images in pop-ups
  • and more

Check out the documentation for all the features. Every configuration option can be applied on a per-page basis!

Velocity tools

Msb3 skin provides custom Velocity tools library to be used in Maven site template:

  • SkinConfigTool - convenient access to custom configuration options (global and per-page)
  • HtmlTool - query and modify HTML text
  • URITool - use Java URIs in the template

To enable these tools for any skin, add msb3-velocity-tools dependency to maven-site-plugin in the POM.

Read more about usage and browse the Javadoc »

Back to top

Version: 0.1.2-SNAPSHOT. Last Published: 2015-12-21.

Msb3 Maven skin by Marek Romanowski.