From 25e4d04a331a6a0b9d897d4f721757730771ff97 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sat, 18 Nov 2017 16:00:29 -0500 Subject: More documentation * Documented the item table * Documented the inventory table * Started writing tutorials --- config.ld | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'config.ld') diff --git a/config.ld b/config.ld index 3d69f61..e6eb32f 100644 --- a/config.ld +++ b/config.ld @@ -12,26 +12,34 @@ file = { } format = 'markdown' sort_modules = true -new_type("domain","Domain",false) 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=true}, - {'domain', hidden=true} + {'reqadmin', hidden=false}, } custom_display_name_handler = function(item,default_handeler) - if item.type == "function" then + if item.type == "concommand" then if item.tags.reqadmin then - return item.name .. "Requires Admin" - elseif item.tags.domain then - return item.name .. "Domain:" + return item.name .. " Requires Admin " + end + elseif item.type == "domain" then + if item.tags.domain == "server" then + return "[Server]" + elseif item.tags.domain == "client" then + return "[Client]" + elseif item.tags.domain == "shared" then + return "[Shared]" end end return default_handeler(item) end readme = "README.md" + +examples = { + "doc/examples" +} -- cgit v1.2.3-70-g09d2