diff options
Diffstat (limited to 'doc/markdowndoc.lua')
-rw-r--r-- | doc/markdowndoc.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/markdowndoc.lua b/doc/markdowndoc.lua index 80918253..3dade210 100644 --- a/doc/markdowndoc.lua +++ b/doc/markdowndoc.lua @@ -218,6 +218,14 @@ function M.start(doc) f:write(html) f:close() end + + -- Write index.html. + f = io_open(M.options.output_dir..'/api/index.html', 'wb') + local html = HTML:gsub('%%%(([^)]+)%)', { + title = 'Textadept API', nav = nav, toc = '', main = '' + }) + f:write(html) + f:close() end return M |