aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/markdowndoc.lua
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2012-03-07 17:18:09 -0500
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2012-03-07 17:18:09 -0500
commit4d762249e7306c40a04b08cb180c26a88c8ff455 (patch)
treeee70fb139f5012f85dac3848646c90ecfb199499 /doc/markdowndoc.lua
parentd5f7ebe560d99a78de95ded236181e3a98bb25ef (diff)
Create doc/api/index.html; doc/markdowndoc.lua
Diffstat (limited to 'doc/markdowndoc.lua')
-rw-r--r--doc/markdowndoc.lua8
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