diff options
author | max397574 <[email protected]> | 2021-12-09 18:41:23 +0100 |
---|---|---|
committer | max397574 <[email protected]> | 2021-12-09 18:41:23 +0100 |
commit | 4595f296ce2040847510302d4d7da994358f9bf5 (patch) | |
tree | cd8895b6323b72ea4464ee1fc77089268e12ad70 /scripts/gendocs.lua | |
parent | 174c29615c106b72ce4a151afe1644683d61d03f (diff) |
feat(github): added docgen workflow
Diffstat (limited to 'scripts/gendocs.lua')
-rw-r--r-- | scripts/gendocs.lua | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/scripts/gendocs.lua b/scripts/gendocs.lua new file mode 100644 index 0000000..246f9e9 --- /dev/null +++ b/scripts/gendocs.lua @@ -0,0 +1,25 @@ +local docgen = require("docgen") + +local docs = {} + +docs.test = function() + -- TODO: Fix the other files so that we can add them here. + local input_files = { + "./lua/startup/functions.lua", + } + + local output_file = "./doc/startup.txt" + local output_file_handle = io.open(output_file, "w") + + for _, input_file in ipairs(input_files) do + docgen.write(input_file, output_file_handle) + end + + output_file_handle:write(" vim:tw=78:ts=8:ft=help:norl:\n") + output_file_handle:close() + vim.cmd([[checktime]]) +end + +docs.test() + +return docs |