Added pandoc command to build file

This commit is contained in:
Erik C. Thauvin 2023-08-27 13:11:54 -07:00
parent 8dae1dcbaf
commit 84d3f69215
5 changed files with 23 additions and 12 deletions

View file

@ -34,10 +34,10 @@ package net.thauvin.erik.semver;
import rife.bld.BuildCommand;
import rife.bld.Project;
import rife.bld.extension.ExecOperation;
import rife.bld.extension.JacocoReportOperation;
import rife.bld.extension.PmdOperation;
import rife.bld.publish.*;
import rife.tools.FileUtils;
import rife.tools.exceptions.FileUtilsErrorException;
import java.io.IOException;
@ -113,6 +113,22 @@ public class SemverBuild extends Project {
new JacocoReportOperation().fromProject(this).execute();
}
@BuildCommand(summary = "Build the docs with Pandoc")
public void pandoc() throws Exception {
new ExecOperation()
.fromProject(this)
.command("pandoc",
"--from", "gfm",
"--to", "html5",
"--metadata", "pagetitle=Semantic Version Annotation Processor",
"-s",
"-c", "docs/github-pandoc.css",
"-o", "docs/README.html",
"README.md")
.execute();
}
@BuildCommand(summary = "Runs PMD analysis")
public void pmd() {
new PmdOperation()