mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Use .md extension for markdown files
Linking to line numbers is brittle, linking to sections/headings is better. If you still want to link to a line number, you can append ?plain=1 to GitHub's URL
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
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.txt on top level headings
|
||||
cat ../lua_api.txt | csplit -sz -f docs/section - '/^=/-1' '{*}'
|
||||
# Split lua_api.md on top level headings
|
||||
cat ../lua_api.md | csplit -sz -f docs/section - '/^=/-1' '{*}'
|
||||
|
||||
cat > mkdocs.yml << EOF
|
||||
site_name: Minetest API Documentation
|
||||
|
Reference in New Issue
Block a user