* @since 4.0.0
*/
public class FunctionDocumentationSplitter {
public static void main(String[] args) throws Exception {
Folder folder = new Folder("C:\\tmp\\functions\\");
folder.delete();
folder.createOnDisk();
FunctionRegistry functions = FunctionRegistry.getRegistry();
for (FunctionCategory c : functions.getCategories()) {
for (Function f : c.getFunctions()) {
String name = KongaStringUtils.removeStartAndEnd(f.getName(), "<", ">");
String html = "<html>" + f.getDocumentation() + "</html>";
File output = folder.getFile(name.toLowerCase() + ".html");
FileUtils.writeStringToFile(output, html, "utf-8");
}
}
}