mirror of
git://repo.or.cz/minetest_schemedit.git
synced 2025-01-08 17:10:32 +01:00
Cleanup usage readme generator
This commit is contained in:
parent
bdd44a6871
commit
148505fd2f
@ -26,7 +26,7 @@ end
|
|||||||
|
|
||||||
|
|
||||||
-- Schemedit items to generate the readme from
|
-- Schemedit items to generate the readme from
|
||||||
local items = { "creator", "void", "probtool" }
|
local items = { "creator", "probtool", "void" }
|
||||||
|
|
||||||
minetest.register_chatcommand("make_schemedit_readme", {
|
minetest.register_chatcommand("make_schemedit_readme", {
|
||||||
description = "Generate the schemedit usage help readme file",
|
description = "Generate the schemedit usage help readme file",
|
||||||
@ -47,7 +47,10 @@ minetest.register_chatcommand("make_schemedit_readme", {
|
|||||||
readme = readme .. "### "..desc.."\n"
|
readme = readme .. "### "..desc.."\n"
|
||||||
readme = readme .. longdesc .."\n\n"
|
readme = readme .. longdesc .."\n\n"
|
||||||
readme = readme .. "#### Usage\n"
|
readme = readme .. "#### Usage\n"
|
||||||
readme = readme .. usagehelp .."\n\n"
|
readme = readme .. usagehelp
|
||||||
|
if i < #items then
|
||||||
|
readme = readme .. "\n\n\n"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local path = minetest.get_worldpath().."/schemedit_readme.md"
|
local path = minetest.get_worldpath().."/schemedit_readme.md"
|
||||||
|
Loading…
Reference in New Issue
Block a user