docs: publish thesis evaluation bundle

This commit is contained in:
lda
2026-06-30 22:46:17 +07:00 Verified
parent 5e9b76eb94
commit e12ccdf18a
28 changed files with 11555 additions and 103 deletions
+32
View File
@@ -0,0 +1,32 @@
-- Replace explicit include markers with parsed Markdown before cross-reference processing.
local agent_results_path = nil
local function read_metadata(meta)
if meta.thesisAgentResults then
agent_results_path = pandoc.utils.stringify(meta.thesisAgentResults)
end
return meta
end
local function include_results(div)
if div.identifier ~= "include-agent-challenge-results" then
return nil
end
if not agent_results_path or agent_results_path == "" then
error("thesisAgentResults metadata is required for the evaluation include")
end
local file, open_error = io.open(agent_results_path, "r")
if not file then
error("cannot open agent challenge results: " .. tostring(open_error))
end
local content = file:read("*a")
file:close()
return pandoc.read(content, "markdown").blocks
end
-- Separate passes guarantee metadata is available before block traversal.
return {
{ Meta = read_metadata },
{ Div = include_results },
}