mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00: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:
parent
e36b2226b9
commit
5949172735
5 changed files with 51 additions and 15 deletions
|
@ -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' '{*}'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue