| | |
| | | */
|
| | | public class BuildSite {
|
| | |
|
| | | private static final String SPACE_DELIMITED = "SPACE-DELIMITED";
|
| | | |
| | | private static final String CASE_SENSITIVE = "CASE-SENSITIVE";
|
| | |
|
| | | private static final String RESTART_REQUIRED = "RESTART REQUIRED";
|
| | |
| | |
|
| | | System.out.println(MessageFormat.format("Generating site from {0} Markdown Docs in {1} ",
|
| | | markdownFiles.length, sourceFolder.getAbsolutePath()));
|
| | | String linkPattern = "<a href=''{0}''>{1}</a>";
|
| | | String linkPattern = "<li><a href=''{0}''>{1}</a></li>";
|
| | | StringBuilder sb = new StringBuilder();
|
| | | for (File file : markdownFiles) {
|
| | | String documentName = getDocumentName(file);
|
| | |
| | | for (Setting setting : settings) {
|
| | | for (String comment : setting.comments) {
|
| | | if (comment.contains(SINCE) || comment.contains(RESTART_REQUIRED)
|
| | | || comment.contains(CASE_SENSITIVE)) {
|
| | | || comment.contains(CASE_SENSITIVE) || comment.contains(SPACE_DELIMITED)) {
|
| | | sb.append(MessageFormat.format(
|
| | | "<span style=\"color:#004000;\"># <i>{0}</i></span>",
|
| | | transformMarkdown(comment)));
|