mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Build MkDocs Lua API docs using GitHub CI, deploy to api.minetest.net (#13675)
* Build MkDocs Lua API documentation using GitHub CI and Pages instead * Remove Lua highlight hack as codeblocks are correctly marked as Lua now * fix line endings
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
# Patch Python-Markdown
|
||||
MARKDOWN_FILE=$(pip show markdown | awk '/Location/ { print $2 }')/markdown/extensions/codehilite.py
|
||||
patch -N -r - $MARKDOWN_FILE lua_highlight.patch || true
|
||||
|
||||
# Split lua_api.md on top level headings
|
||||
cat ../lua_api.md | csplit -sz -f docs/section - '/^=/-1' '{*}'
|
||||
|
||||
|
Reference in New Issue
Block a user