Differences From
Artifact [783a358256]:
1 1 local path = ...
2 2 local sources = {
3 3 -- user section
4 4 acl = {title = 'access control lists'};
5 + auth = {title = 'credentials & authentication', priv = 'account'};
5 6 -- admin section
6 7 --overview = {title = 'server overview', priv = 'config'};
7 8 invocation = {title = 'daemon invocation', priv = 'config'};
8 9 usr = {title = 'user accounting', priv = {'elevate','demote','purge','herald'}};
9 10 --srvcfg = {title = 'server configuration policies', priv = 'config'};
10 11 --discipline = {title = 'disciplinary measures', priv = 'discipline'};
11 12 --backends = {title = 'storage backends', priv = 'config'};
12 13 --pgsql = {title = 'pgsql', priv = 'config', parent = 'backends'};
13 14 }
14 15
15 16 local util = dofile 'common.lua'
16 17 local ingest = function(filename)
17 - return (util.exec { 'cmark', '--smart', '--unsafe', (path..'/'..filename) }):gsub('\n','')
18 + return (util.exec { 'cmark', '--smart', '--unsafe', (path..'/'..filename) })
19 + --:gsub('\n','')
18 20 end
19 21
20 22 local doc = {}
21 23 for n,meta in pairs(sources) do doc[n] = {
22 24 name = n;
23 25 text = ingest(n .. '.md');
24 26 meta = meta;
25 27 } end
26 28 return doc