1
0
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:
ROllerozxa
2023-09-18 18:17:18 +02:00
committed by GitHub
parent e36b2226b9
commit 5949172735
5 changed files with 51 additions and 15 deletions

View File

@@ -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' '{*}'