in src/main/java/org/apache/maven/plugins/site/render/AbstractSiteRenderingMojo.java [529:552]
private void populateItemRefs(List<MenuItem> items, Locale locale, Map<String, MavenReport> reportsByOutputName) {
for (Iterator<MenuItem> i = items.iterator(); i.hasNext(); ) {
MenuItem item = i.next();
if (item.getRef() != null) {
MavenReport report = reportsByOutputName.get(item.getRef());
if (report != null) {
if (item.getName() == null) {
item.setName(report.getName(locale));
}
if (item.getHref() == null || item.getHref().length() == 0) {
item.setHref(report.getOutputName() + ".html");
}
} else {
getLog().warn("Unrecognised reference: '" + item.getRef() + "'");
i.remove();
}
}
populateItemRefs(item.getItems(), locale, reportsByOutputName);
}
}