Index: cortav.lua ================================================================== --- cortav.lua +++ cortav.lua @@ -286,11 +286,10 @@ ident = 'ext-job'; init = { states = {}; }; construct = function(me,name,doc,pred,...) - print('constructing job',name,'for',doc) -- prepare contexts for relevant extensions me.name = name me.doc = doc -- for reqs + limiting for _, ext in pairs(ct.ext.loaded) do if pred == nil or pred(ext) then @@ -387,11 +386,10 @@ -- used when extensions may need to persist state across -- multiple functions or invocations local ret = {} local hook_id = me.name ..'_'.. hook for hookfn, ext, state in me:each('hook', hook_id) do - print(' - running hook for ext',ext.id) table.insert(ret, (hookfn(me:delegate(ext),...))) end return ret end; }; Index: ext/toc.lua ================================================================== --- ext/toc.lua +++ ext/toc.lua @@ -33,11 +33,10 @@ version = ss.version {0,1; 'devel'}; contributors = {{name='lexi hale', handle='velartrill', mail='lexi@hale.su', homepage='https://hale.su'}}; default = true; -- on unless inhibited hook = { doc_init = function(job) - print('initing doc:toc',job.doc) job.state.toc_custom_position = false end; render_html_init = function(job, render) render.stylesets.toc = css_toc @@ -170,15 +169,14 @@ } table.insert(n.nodes, {tag = 'li', attrs = {}, nodes={nn}}) end table.insert(ent.nodes, n) end - print(ss.dump(ent)) end end return lst end; [true] = function() end; -- fallback // convert to different node types }; }; }