Merge branch 'doc-refactor-2' of https://github.com/Bituvo/minetest into doc-refactor-2

This commit is contained in:
Bradley Pierce 2024-02-27 16:57:08 -05:00
commit 1a173462e4
1 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,7 @@
#!/bin/sh -e
# Split lua_api.md on top level headings
cat ../lua_api.md | csplit -sz -f docs/section - '/^=/-1' '{*}'
cat ../lua_api.md | csplit -sz -f docs/section - '/^# /' '{*}'
cat > mkdocs.yml << EOF
site_name: Minetest API Documentation
@ -30,6 +30,7 @@ mv docs/section00 docs/index.md
for f in docs/section*
do
title=$(head -1 $f)
title="${title#??}"
fname=$(echo $title | tr '[:upper:]' '[:lower:]')
fname=$(echo $fname | sed 's/ /-/g')
fname=$(echo $fname | sed "s/'//g").md