diff options
author | stevedonovan <steve.j.donovan@gmail.com> | 2011-04-06 18:21:00 +0400 |
---|---|---|
committer | stevedonovan <steve.j.donovan@gmail.com> | 2011-04-06 18:21:00 +0400 |
commit | ae64bf0ce877176775d4a3d50909a49372747aa9 (patch) | |
tree | 414fc842d7621c4ba6858afce75db8675b04bcc1 /docs | |
parent | 9a60fb0e6544de4e72d8ef019f5316052112481b (diff) |
minor tweaks to ldoc to preserve class names
Diffstat (limited to 'docs')
-rwxr-xr-x | docs/api/gen_modules | 3 | ||||
-rw-r--r-- | docs/api/gen_modules.bat | 3 | ||||
-rw-r--r-- | docs/api/ldoc.lua | 10 |
3 files changed, 8 insertions, 8 deletions
diff --git a/docs/api/gen_modules b/docs/api/gen_modules index 29f9e38..cb4d689 100755 --- a/docs/api/gen_modules +++ b/docs/api/gen_modules @@ -1,4 +1,3 @@ -PL="/home/steve/lua/projects/Penlight" -# PL="../.." +PL="../.." lua ldoc.lua $PL/lua/pl diff --git a/docs/api/gen_modules.bat b/docs/api/gen_modules.bat index 020abaf..3a9f768 100644 --- a/docs/api/gen_modules.bat +++ b/docs/api/gen_modules.bat @@ -1,3 +1,4 @@ -lua c:/lua/lua/luadoc_start.lua -p d:/dev/lua/projects/penlight-0.8/lua/pl -nofiles
+lua ldoc.lua ..\..\lua\pl
+
diff --git a/docs/api/ldoc.lua b/docs/api/ldoc.lua index b3080f1..b337d79 100644 --- a/docs/api/ldoc.lua +++ b/docs/api/ldoc.lua @@ -18,13 +18,14 @@ ldoc, a Lua documentation generator, vs 0.1 Beta local known_tags = { param = 'M', see = 'M', usage = 'M', ['return'] = 'M', field = 'M', author='M'; - class = 'id', name = 'id'; + class = 'id', name = 'id', pragma = 'id'; copyright = 'S', description = 'S', release = 'S' } local kind_names = { ['function'] = {name='Functions',subnames='Parameters'}, - table = {name='Tables',subnames='Fields'} + table = {name='Tables',subnames='Fields'}, + field = {name='Fields'} } local filename, lineno @@ -135,7 +136,7 @@ function File:finish() -- new-style modules will have qualified names like 'mod.foo'; -- if that's the mod_name, then we want to only use 'foo' local mod,fname = split_dotted_name(item.name) - if mod == this_mod.mod_name then + if mod == this_mod.mod_name and this_mod.tags.pragma ~= 'nostrip' then item.name = fname end item.module = this_mod @@ -280,7 +281,6 @@ function Module:resolve_references(modules) if fun_ref then return self,fun_ref else item:warning("function not found: "..s.." in this module") - for k in pairs(self.items.by_name) do print(k) end end end end @@ -636,7 +636,7 @@ end generate_output() -if args.v then +if args.verbose then for k in pairs(module_list.by_name) do print(k) end end |