@Description("Specify a list of templates to use when rendering this component. The first template that exists " + "will be chosen for this component.") @Getter @Setter @Description("By default, components are rendered in the order in which they are declared, but the ordering can " + "be changed by setting the order on any individual component. A higher value for order will render that " + "component earlier in the list.")
public List<OptionsDescription> describeOptions(OptionsHolder optionsHolder) { Set<Field> fields = findOptionFields(optionsHolder); List<OptionsDescription> optionDescriptions = new ArrayList<>(); for (Field field : fields) { String key = (!EdenUtils.isEmpty(field.getAnnotation(Option.class).value())) ? field.getAnnotation(Option.class).value() : field.getName(); String description = (field.getAnnotation(Description.class) != null && !EdenUtils.isEmpty(field.getAnnotation(Description.class).value())) ? field.getAnnotation(Description.class).value() : ""; optionDescriptions.add(new OptionsDescription(key, field.getType(), description)); } return optionDescriptions; }
@Description("Set which local resource directories you want to copy static assets from.") public String[] sourceDirs;
@Singleton @Description("Generates static pages with the same output folder as their input, minus the base directory. Input " + "pages come from 'baseDir' option value, which defaults to 'pages'.") public class PagesGenerator extends OrchidGenerator {
@Description("Add additional file extensions to recognize as binary, so these assets can be copied directly without further processing.") public String[] customBinaryExtensions; @Description("Convert unrecognized file extensions into known file types for the compilers. The should be a mapping with keys of the unrecognized extension and values of the known extension. These take precedence over the normally recognized extensions.") public JSONObject customCompilerExtensions;
@Description("Embed presentations and slide-decks in your pages.") public class PresentationsGenerator extends OrchidGenerator {