mirror of
https://codeberg.org/AntumLuanti/mod-cleaner.git
synced 2025-03-15 12:51:22 +00:00
Add script & config for generating HTML docs with LDoc
This commit is contained in:
parent
e75ee0ccd8
commit
958d45775c
2 changed files with 17 additions and 0 deletions
4
docs/config.ld
Normal file
4
docs/config.ld
Normal file
|
@ -0,0 +1,4 @@
|
|||
project = "Cleaner"
|
||||
title = "Cleaner mod for Minetest"
|
||||
format = "markdown"
|
||||
boilerplate = false
|
13
docs/gendoc.sh
Normal file
13
docs/gendoc.sh
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
docs="$(dirname $(readlink -f $0))"
|
||||
root="$(dirname ${docs})"
|
||||
config="${docs}/config.ld"
|
||||
|
||||
cd "${root}"
|
||||
|
||||
# Clean old files
|
||||
rm -rf "${docs}/api"
|
||||
|
||||
# Create new files
|
||||
ldoc -c "${config}" -d "${docs}/api" "${root}/api.lua"
|
Loading…
Add table
Reference in a new issue