views:

119

answers:

3

I'm using mvn site to generate my site's documentation. For the most part, I'm satisfied with the default site, but I'd like to remove the "About" link from the left hand menu bar and just have the default page be the "Project Information" page. Is there an easy way to do this?

Thanks,

Jeff

+1  A: 

You can either modify the source and comment it out or add a css selector for it, or you can include a JS library like jQuery and remove it when the page loads via something like:

$(function () {
   // untested
   $('#navcolumn h5:contains("Maven")').hide(); // hide the header
   $('#navcolumn h5:contains("Maven") + ul ').hide(); // hide the ul
})();
Keith Bentrup
Thanks for that info. But what if I wanted to get more advanced like they do at the maven site http://maven.apache.org/plugins/maven-site-plugin/. I looked at their site.xml and vm template file, but couldn't seem to figure out how they were getting things in there like the "Maven Projects" section. Any help on this would be appreciated. Thanks.
Jeff Storey
A: 

I was able to use the maven-project-info-reports-plugin for customizing as needed.

Jeff Storey
A: 

Here only the 'About' report is still included. All other standard reports are removed.

<reporting>
  <plugins>

    <!--  Add the Maven project information reports  -->
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-project-info-reports-plugin</artifactId>
      <version>2.1.2</version>
      <reportSets>
        <reportSet>
          <reports>
            <report>index</report>
            <!--
            <report>dependencies</report>
            <report>project-team</report>
            <report>mailing-list</report>
            <report>cim</report>
            <report>issue-tracking</report>
            <report>license</report>
            <report>scm</report>
             -->
          </reports>
        </reportSet>
      </reportSets>
    </plugin>
  </plugins>
</reporting>
Verhagen