aboutsummaryrefslogtreecommitdiff
path: root/config.ld
blob: 547d47386c08e9580014db1d1a29f31f82760ef1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
project = 'Artery'
description = 'Artery gamemode base'
full_description = 'A hefty gamemode base for making rpgs in Garrys Mod'
title = 'Artery Documentation'
style = '!fixed'
use_markdown_titles = true
file = {
	"./gamemode",
	"./tutorials",
	exclude={
		"gamemode/core/database/sv_mysqlite.lua"
	}
}
format = 'markdown'
sort_modules = true
--[[new_type("concommand","Console commands", true)
new_type("metamethod","Meta Methods", true)]]

new_type("server","Server Modules", true)
new_type("client","Client Modules", true)
new_type("shared","Shared Modules", true)

new_type("tutorial","Tutorials",true)
custom_tags = {
	{'reqadmin', hidden=false},
	{"domain", hidden=false},
}

custom_display_name_handler = function(item,default_handler)
	local decorators = {}
	local decorate = {
		reqadmin = function(key,name) return string.format(" %s <em class=\"reqadmin\">Requires Admin</em>",name) end,
		domain = function(key,name) return "<span class=\"domain-".. key[1] .. "\">[" .. key[1] .. "]</span>" .. name end,
	}
	if item.type == "concommand" then
		if item.tags.reqadmin then
			for k,v in pairs(item) do
				print(k,":",v)
			end
		decorators["reqadmin"] = true
		end
	end
	if item.tags.domain then
		decorators.domain = item.tags.domain
	end
	local s = default_handler(item)
	for k,v in pairs(decorators) do
		s = decorate[k](v,s)
	end
	return s
end
style = "doc"
readme = {
	"README.md",
	"./tutorials/tut000_setup.md",
	"./tutorials/tut010_first_addon.md",
	"./tutorials/tut020_nrequire.md",
	"./tutorials/tut021_detouring.md",
	"./tutorials/tut030_inventories.md",
	"./tutorials/tut031_metatables.md",
	"./tutorials/tut032_more_fields.md",
	"./tutorials/tut040_items.md",
	"./tutorials/tut041_not_enough_items.md",
	"./tutorials/tut042_too_many_items.md",
	"./tutorials/tut050_entities.md",
}