* @return root
*/
public static RootDoc linkToGeneratedExamples(RootDoc root) throws Exception{
ExampleCreatingRootDocHandler handler = createDefaultHandler(root);
LogBooster protocol = handler.getProtocol(root);
protocol.debug("linkToGeneratedExamples");
HashSet<Doc> foundExamples = new HashSet<Doc>();
for (ClassDoc classDoc: root.classes()){
handler.modify(classDoc, classDoc, foundExamples, protocol);
for (ConstructorDoc constructor: classDoc.constructors()){
handler.modify(classDoc, constructor, foundExamples, protocol);
}
for (MethodDoc method: classDoc.methods()){
handler.modify(classDoc, method, foundExamples, protocol);
}
}
protocol.info("created links to examples for: ", foundExamples);
return root;
}