From 9dc8ce16a1efc6482db6f1d5456d42958e79a06c Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 12 Sep 2012 11:24:11 -0400 Subject: Documentation overhaul. Rewrote most of the manual and Lua API to complement each other. Key bindings reference moved from Appendix to modules/textadept/keys.lua LuaDoc. --- doc/markdowndoc.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc/markdowndoc.lua') diff --git a/doc/markdowndoc.lua b/doc/markdowndoc.lua index 85069370..e44e8c37 100644 --- a/doc/markdowndoc.lua +++ b/doc/markdowndoc.lua @@ -170,6 +170,12 @@ function M.start(doc) -- Write index.html. template.nav = nav + local api_index = M.options.output_dir..'/.api_index.md' + if (require 'lfs').attributes(api_index) then + local p = io_popen('markdown -f toc -T "'..api_index..'"') + template.toc, template.main = p:read('*all'):match('^(.-\n\n)(.+)$') + p:close() + end f = io_open(M.options.output_dir..'/api/index.html', 'wb') local html = HTML:gsub('%%%(([^)]+)%)', template) f:write(html) -- cgit v1.2.3