cortav  Check-in [5898f6833b]

Overview
Comment:aaaagh remove debugging code
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 5898f6833b90c9f3fbc85fdb1e331293d2f49c5cd07e143cb341e8d999de9ea3
User & Date: lexi on 2021-12-22 10:20:42
Other Links: manifest | tags
Context
2021-12-22
10:23
fix bugged makefile check-in: 36024a43c5 user: lexi tags: trunk
10:20
aaaagh remove debugging code check-in: 5898f6833b user: lexi tags: trunk
10:19
disable backtraces check-in: 2af5c4085a user: lexi tags: trunk
Changes

Modified cortav.lua from [e7bf814ce9] to [eb3cc08f95].

   284    284   
   285    285   ct.ext.job = declare {
   286    286   	ident = 'ext-job';
   287    287   	init = {
   288    288   		states = {};
   289    289   	};
   290    290   	construct = function(me,name,doc,pred,...)
   291         -		print('constructing job',name,'for',doc)
   292    291   		-- prepare contexts for relevant extensions
   293    292   		me.name = name
   294    293   		me.doc = doc -- for reqs + limiting
   295    294   		for _, ext in pairs(ct.ext.loaded) do
   296    295   			if pred == nil or pred(ext) then
   297    296   				me.states[ext] = {}
   298    297   			end
................................................................................
   385    384   		end;
   386    385   		hook = function(me, hook, ...)
   387    386   			-- used when extensions may need to persist state across
   388    387   			-- multiple functions or invocations
   389    388   			local ret = {}
   390    389   			local hook_id = me.name ..'_'.. hook
   391    390   			for hookfn, ext, state in me:each('hook', hook_id) do
   392         -				print(' - running hook for ext',ext.id)
   393    391   				table.insert(ret, (hookfn(me:delegate(ext),...)))
   394    392   			end
   395    393   			return ret
   396    394   		end;
   397    395   	};
   398    396   }
   399    397   

Modified ext/toc.lua from [706a61f3d9] to [1a479a26d4].

    31     31   	id = 'toc';
    32     32   	desc = 'provides a table of contents for HTML renderer plus generic fallback';
    33     33   	version = ss.version {0,1; 'devel'};
    34     34   	contributors = {{name='lexi hale', handle='velartrill', mail='lexi@hale.su', homepage='https://hale.su'}};
    35     35   	default = true; -- on unless inhibited
    36     36   	hook = {
    37     37   		doc_init = function(job)
    38         -			print('initing doc:toc',job.doc)
    39     38   			job.state.toc_custom_position = false
    40     39   		end;
    41     40   
    42     41   		render_html_init = function(job, render)
    43     42   			render.stylesets.toc = css_toc
    44     43   			render.stylesets.tocFixed = css_toc_fixed
    45     44   		end;
................................................................................
   168    167   									attrs = {href = '#' .. l.id};
   169    168   									nodes = {sr.htmlSpan(l.label, l.block, sec)};
   170    169   								}
   171    170   								table.insert(n.nodes, {tag = 'li', attrs = {}, nodes={nn}})
   172    171   							end
   173    172   							table.insert(ent.nodes, n)
   174    173   						end
   175         -            print(ss.dump(ent))
   176    174   					end
   177    175   				end
   178    176   				return lst
   179    177   			end;
   180    178   
   181    179   			[true] = function() end; -- fallback // convert to different node types
   182    180   		};
   183    181   	};
   184    182   }