Differences From
Artifact [9f2f406de7]:
1 1 -- vim: ft=terra
2 2 local page = lib.srv.convo.page
3 3 local pstr = lib.mem.ptr(int8)
4 4 local pref = lib.mem.ref(int8)
5 -local P = lib.str.plit
6 -local R = lib.str.lit
7 5
8 6 local topics = lib.util.keys(data.doc)
9 7 local topicidxt = {}
10 8 table.sort(topics) -- because deterministic builds are good
11 9 local branches = {}
12 10 for i,k in pairs(topics) do
13 11 topicidxt[k] = i
................................................................................
36 34 if t.meta.priv then
37 35 if type(t.meta.priv) ~= 'table' then t.meta.priv = {t.meta.priv} end
38 36 for _,v in pairs(t.meta.priv) do
39 37 setbits = quote [setbits]; (restrict.[v] << true) end
40 38 end
41 39 end
42 40 allpages[i] = quote var [restrict]; [setbits] in pgpair {
43 - name = R(v);
41 + name = [v];
44 42 parent = par;
45 43 priv = restrict;
46 - title = R(t.meta.title);
44 + title = [t.meta.title];
47 45 content = page {
48 46 title = ['documentation :: ' .. t.meta.title];
49 47 body = [ t.text ];
50 - class = P'doc article';
48 + class = 'doc article';
51 49 cache = true;
52 50 };
53 51 } end
54 52 end
55 53
56 54 local terra
57 55 showpage(co: &lib.srv.convo, id: pref)
................................................................................
107 105 end
108 106 end
109 107 list:lpush('</ul>')
110 108
111 109 co:stdpage(page {
112 110 title = 'documentation';
113 111 body = list:finalize();
114 - class = P'doc listing';
112 + class = 'doc listing';
115 113 cache = false;
116 114 })
117 115 else showpage(co, pg) end
118 116 end
119 117
120 118 return render_docpage