summaryrefslogtreecommitdiff
path: root/tools/update-lua-docs.lua
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2017-12-29 09:58:47 +0100
committerAlbert Krewinkel <albert@zeitkraut.de>2017-12-29 10:04:55 +0100
commit7fa286fff1eb66ba7e2b2f6452fd06e293347d17 (patch)
tree73d684e64e136f7e84ac6eaf31ace322f7600935 /tools/update-lua-docs.lua
parent9be2c7624cb0cf3ef63516e5df959672958058bc (diff)
Update tool which generates lua module docs
All "helper functions" are not part of the Lua code for module pandoc, but are added in Haskell. The respective documentation section must therefore be excluded from automatic regeneration.
Diffstat (limited to 'tools/update-lua-docs.lua')
-rw-r--r--tools/update-lua-docs.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/update-lua-docs.lua b/tools/update-lua-docs.lua
index 7c5e86d17..746dce984 100644
--- a/tools/update-lua-docs.lua
+++ b/tools/update-lua-docs.lua
@@ -25,7 +25,9 @@ end
function Header (el)
if in_module_section then
- if el.level == 1 then
+ if el.level == 1 or
+ -- special case for Module pandoc
+ (el.level == 2 and el.identifier == 'helper-functions') then
in_module_section = false
return el
else