support for custom resources
This commit is contained in:
parent
39bcaa05df
commit
65133a76f6
|
@ -66,6 +66,10 @@ public abstract class ResourceRenderer extends DataRenderer {
|
|||
return this;
|
||||
}
|
||||
|
||||
public boolean renderingUsesValidation() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Just build the narrative that would go in the resource (per @renderResource()), but don't put it in the resource
|
||||
* @param dr
|
||||
|
|
|
@ -75,7 +75,7 @@ import org.hl7.fhir.utilities.npm.ToolsVersion;
|
|||
public class NPMPackageGenerator {
|
||||
|
||||
public enum Category {
|
||||
RESOURCE, EXAMPLE, OPENAPI, SCHEMATRON, RDF, OTHER, TOOL, TEMPLATE, JEKYLL, TEST;
|
||||
RESOURCE, EXAMPLE, OPENAPI, SCHEMATRON, RDF, OTHER, TOOL, TEMPLATE, JEKYLL, TEST, CUSTOM;
|
||||
|
||||
private String getDirectory() {
|
||||
switch (this) {
|
||||
|
@ -89,6 +89,7 @@ public class NPMPackageGenerator {
|
|||
case JEKYLL: return "package/jekyll/";
|
||||
case TEST: return "package/tests/";
|
||||
case TOOL: return "package/bin/";
|
||||
case CUSTOM: return "package/custom/";
|
||||
}
|
||||
return "/";
|
||||
}
|
||||
|
|
|
@ -119,6 +119,10 @@ public abstract class XhtmlFluent {
|
|||
return addTag("ul");
|
||||
}
|
||||
|
||||
public XhtmlNode ol() {
|
||||
return addTag("ol");
|
||||
}
|
||||
|
||||
public XhtmlNode li() {
|
||||
return addTag("li");
|
||||
}
|
||||
|
|
|
@ -586,7 +586,6 @@ public class XhtmlParser {
|
|||
if (t.length() > 0)
|
||||
{
|
||||
lastText = t;
|
||||
// System.out.println(t);
|
||||
node.addText(t).setLocation(markLocation());
|
||||
s.setLength(0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue