aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/markdowndoc.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/markdowndoc.lua b/doc/markdowndoc.lua
index 5e216457..603b4f07 100644
--- a/doc/markdowndoc.lua
+++ b/doc/markdowndoc.lua
@@ -105,7 +105,9 @@ local function write_list(f, fmt, list)
value = value:gsub('^_G%.', '')
local link = value..'.html'
local module, func = value:match('^(.+)%.([^.]+)$')
- if module and func then link = module..'.html'..(func ~= '' and '#'..func or '') end
+ if module and func then
+ link = module..'.html'..(func ~= '' and '#'..func or '')
+ end
f:write(string_format(fmt, value, link))
else
-- The identifier belongs to the same module. Anchor it.
@@ -262,6 +264,7 @@ function M.start(doc)
template.toc = template.toc:gsub('(<a.-)%b()(</a>)', '%1%2') -- strip params
:gsub('<code>([^<]+)</code>', '%1') -- sans serif
:gsub('_G.(events.[%w_]+)', '<small>%1</small>')
+ :gsub('SC_[%u]+', '<small>%0</small>')
f = io_open(M.options.output_dir..'/api/'..name..'.html', 'wb')
local html = HTML:gsub('%%%(([^)]+)%)', template)
f:write(html)