Codebase list lua-ldoc / 3f653cf
issue #171 doc updates steve donovan 9 years ago
3 changed file(s) with 26 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
12031203 - `examples` a directory or file: can be a table
12041204 - `readme` or `topics` readme files (to be processed with Markdown)
12051205 - `pretty` code prettify 'lua' (default) or 'lxsh'
1206 - `prettify_files` prettify the source as well and make links to it; if its value is "show"
1207 then also index the source files.
12061208 - `charset` use if you want to override the UTF-8 default (also **@charset** in files)
12071209 - `sort` set if you want all items in alphabetical order
12081210 - `no_return_or_parms` don't show parameters or return values in output
1211 - `no_lua_ref` stop obsessively trying to create references to standard Lua libraries
12091212 - `backtick_references` whether references in backticks will be resolved. Happens by default
12101213 when using Markdown. When explicit will expand non-references in backticks into `<code>` elements
12111214 - `plain` set to true if `format` is set but you don't want code comments processed
1212 - `wrap` ??
1215 - `wrap` set to true if you want to allow long names to wrap in the summaries
12131216 - `manual_url` point to an alternative or local location for the Lua manual, e.g.
12141217 'file:///D:/dev/lua/projects/lua-5.1.4/doc/manual.html'
12151218 - `no_summary` suppress the Contents summary
1219 - `custom_tags` define some new tags, which will be presented after the function description.
1220 The format is `{<name>,[title=<name>,}{hidden=false,}{format=nil}}`. For instance
1221 `custom_tags={'remark',title='Remarks'}` will add a little `Remarks` section to the docs for any function
1222 containing this tag. `format` can be a function - if not present the default formatter will be used,
1223 e.g. Markdown
12161224 - `custom_see_handler` function that filters see-references
12171225 - `custom_display_name_handler` function that formats an item's name. The arguments are the item
12181226 and the default function used to format the name. For example, to show an icon or label beside any
12191227 function tagged with a certain tag:
1228
12201229 -- define a @callback tag:
12211230 custom_tags = { { 'callback', hidden = true } }
12221231
12301239
12311240 - `not_luadoc` set to `true` if the docs break LuaDoc compatibility
12321241 - `no_space_before_args` set to `true` if you do not want a space between a function's name and its arguments.
1233 - `template_escape` overrides the usual '#' used for Lua code in templates. This needs to be changed if the output format is Markdown, for instance.
1242 - `template_escape` overrides the usual '#' used for Lua code in templates.
1243 This needs to be changed if the output format is Markdown, for instance.
12341244
12351245 _Available functions are:_
12361246
0 -- must have explicit optchain!
1 convert_opt=true
2 format = 'markdown'
3 -- want to include project source as well.
4 prettify_files='show'
5
0 -- must have explicit optchain!
1 convert_opt = true
2
3 format = 'markdown'
4
5 -- want to include project source as well.
6 prettify_files = 'show'
7
8 -- a custom tag!
9 custom_tags = {{'remark',title='Remarks'}}
10
00 ------------
1 -- Functions with options.
1 -- Functions with options and custom tags
2 --
23 -- @include opt.md
34
45 ---- testing [opt]
67 -- @param[opt] two
78 -- @param[opt]three
89 -- @param[opt] four
10 -- @remark use with caution!
911 function use_opt (one,two,three,four)
1012 end
1113