aboutsummaryrefslogtreecommitdiff
path: root/config.ld
blob: e6eb32fa6e98c0824734ac0b64491a9149c9e320 (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
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 = {
	".",
	exclude={
		"gamemode/core/database/sv_mysqlite.lua"
	}
}
format = 'markdown'
sort_modules = true
new_type("concommand","Console commands", false)
new_type("metamethod","Meta Methods", false)
new_type("server","Server Modules", true)
new_type("client","Client Modules", true)
new_type("shared","Shared Modules", true)
custom_tags = {
	{'reqadmin', hidden=false},
}

custom_display_name_handler = function(item,default_handeler)
	if item.type == "concommand" then
		if item.tags.reqadmin then
			return item.name .. " <em class=\"reqadmin\">Requires Admin</em> "
		end
	elseif item.type == "domain" then
		if item.tags.domain == "server" then
			return "<strong class=\"server\">[Server]</strong>"
		elseif item.tags.domain == "client" then
			return "<strong class=\"client\">[Client]</strong>"
		elseif item.tags.domain == "shared" then
			return "<strong class=\"shared\">[Shared]</strong>"
		end
	end
	return default_handeler(item)
end

readme = "README.md"

examples = {
	"doc/examples"
}