Skip to content

Commit

Permalink
getting rid of template snippets when rendering docs
Browse files Browse the repository at this point in the history
  • Loading branch information
srietkerk committed Apr 15, 2024
1 parent e676aa6 commit 624cfcb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pxtrunner/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1261,6 +1261,13 @@ function renderGhost(options: ClientRenderOptions) {
c.remove();
}

function renderTemplate(options: ClientRenderOptions) {
let c = $('code.lang-template');
if (options.snippetReplaceParent)
c = c.parent();
c.remove();
}

function renderBlockConfig(options: ClientRenderOptions) {
function render(scope: "local" | "global") {
$(`code.lang-blockconfig\\.${scope}`).each((i, c) => {
Expand Down Expand Up @@ -1326,6 +1333,7 @@ export function renderAsync(options?: ClientRenderOptions): Promise<void> {
renderQueue = [];
renderGhost(options);
renderBlockConfig(options);
renderTemplate(options);
renderValidation(options);
renderSims(options);
renderTypeScript(options);
Expand Down

0 comments on commit 624cfcb

Please sign in to comment.