diff options
Diffstat (limited to 'config.ld')
| -rw-r--r-- | config.ld | 22 |
1 files changed, 15 insertions, 7 deletions
@@ -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 .. "<strong>Requires Admin</strong>" - elseif item.tags.domain then - return item.name .. "Domain:" + 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" +} |
