aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlbert Krewinkel <[email protected]>2022-02-05 12:57:19 +0100
committerAlbert Krewinkel <[email protected]>2022-02-05 13:32:02 +0100
commit31693674758e83de2fedf8554c3787430f57ab8f (patch)
treee010f02488b99d3e475977668549a45dc18bbbb4 /Makefile
parentd40d94ebd9919802267159c0d753d90cca36b1dc (diff)
Lua docs: allow to auto-generate Lua module documentations
No documentations are generated for now, this just adds the necessary code and auto-formats file `doc/lua-filters.md`.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 41d585529..2301d81c4 100644
--- a/Makefile
+++ b/Makefile
@@ -107,6 +107,15 @@ README.md: README.template MANUAL.txt tools/update-readme.lua
pandoc --lua-filter tools/update-readme.lua \
--reference-location=section -t gfm $< -o $@
+.PHONY: doc/lua-filters.md
+doc/lua-filters.md: tools/update-lua-module-docs.lua
+ cabal run pandoc -- --standalone \
+ --reference-links \
+ --lua-filter=$< \
+ --columns=66 \
+ --output=$@ \
+ $@
+
download_stats: ## print download stats from GitHub releases
curl https://api.github.com/repos/jgm/pandoc/releases | \
jq -r '.[] | .assets | .[] | "\(.download_count)\t\(.name)"'