Skip to content

Commit

Permalink
Allow the site to build
Browse files Browse the repository at this point in the history
  • Loading branch information
coatless committed Feb 11, 2024
1 parent 7724754 commit a3fc652
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions _extensions/pyodide/qpyodide.lua
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function interactiveTemplateFile()
end

-- Cache a copy of each public-facing templates to avoid multiple read/writes.
interactive_template = interactiveTemplateFile()
-- interactive_template = interactiveTemplateFile()

-- Define a function that escape control sequence
function escapeControlSequences(str)
Expand All @@ -246,12 +246,13 @@ function initializationPyodide()
}

-- Make sure we perform a copy
local initializationTemplate = initializationTemplateFile()
--local initializationTemplate = initializationTemplateFile()

-- Make the necessary substitutions
local initializedPyodideConfiguration = substitute_in_file(initializationTemplate, substitutions)
--local initializedPyodideConfiguration = substitute_in_file(initializationTemplate, substitutions)

return initializedPyodideConfiguration
--return initializedPyodideConfiguration
return "Placeholder"
end

-- Setup Pyodide's pre-requisites once per document.
Expand All @@ -271,13 +272,13 @@ function ensurePyodideSetup()
-- https://quarto.org/docs/extensions/lua-api.html#includes

-- Insert CSS styling and external style sheets
quarto.doc.include_file("in-header", "pyodide-styling.html")
--quarto.doc.include_file("in-header", "pyodide-styling.html")

-- Insert the Pyodide initialization routine
quarto.doc.include_text("in-header", initializedConfigurationPyodide)
--quarto.doc.include_text("in-header", initializedConfigurationPyodide)

-- Insert the Monaco Editor initialization
quarto.doc.include_file("before-body", "monaco-editor-init.html")
--quarto.doc.include_file("before-body", "monaco-editor-init.html")

end

Expand Down

0 comments on commit a3fc652

Please sign in to comment.