<%= note.title %>
+ +<%= note.title %>
+ <% if (isEmpty && !note.hasVisibleChildren()) { %> +This note has no content.
+ <% } else { %> <%- content %> -diff --git a/scripts/build.ts b/scripts/build.ts index d8fea2d7a..a4f3c39b0 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -33,7 +33,7 @@ async function sendTemplates() { } if (process.argv.includes("--only-templates")) { - sendTemplates().catch(console.error); + await sendTemplates(); process.exit(0); } diff --git a/src/templates/page.ejs b/src/templates/page.ejs index 5abba1535..fcf619044 100644 --- a/src/templates/page.ejs +++ b/src/templates/page.ejs @@ -24,7 +24,7 @@ document.addEventListener("DOMContentLoaded", function() { SwaggerUIBundle({ url: `<%= note.getLabelValue("shareSwagger") %>`, - domNode: "#content" + dom_id: "#content" }); }); @@ -43,6 +43,23 @@ <% } %> <%- header %>
This note has no content.
+ <% } else { %> <%- content %> -This note has no content.
-