Package ch.njol.skript.doc
Class HTMLGenerator
java.lang.Object
ch.njol.skript.doc.DocumentationGenerator
ch.njol.skript.doc.HTMLGenerator
Template engine, primarily used for generating Skript documentation
pages by combining data from annotations and templates.
-
Field Summary
Fields inherited from class ch.njol.skript.doc.DocumentationGenerator
outputDir, templateDir -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerate()Generates documentation using template and output directories given in the constructor.String[]getDefaultIfNullOrEmpty(@Nullable String[] string, String message) getDefaultIfNullOrEmpty(@Nullable String string, String message) Checks if a string is empty or null then it will return the message provided
-
Constructor Details
-
HTMLGenerator
-
-
Method Details
-
generate
public void generate()Generates documentation using template and output directories given in the constructor.- Specified by:
generatein classDocumentationGenerator
-
getDefaultIfNullOrEmpty
Checks if a string is empty or null then it will return the message provided- Parameters:
string- the String to checkmessage- the String to return if either condition is true
-
getDefaultIfNullOrEmpty
-