premake/scripts/docscheck.lua
Sam Surtees 0fb9327993 Added action to check for missing documentation
- Added auto-generated documentation files for APIs without docs
- Renamed editAndContinue.md to editandcontinue.md to match convention
2021-10-21 12:45:39 +10:00

14 lines
331 B
Lua

---
-- Validate documentation for Premkake APIs.
---
local count = 0
for k,v in pairs(premake.field._loweredList) do
local docfilepath = "../website/docs/" .. k .. ".md"
local exists = os.isfile(docfilepath)
if not exists then
print("Missing documentation file for: ", k)
count = count + 1
end
end
os.exit(count)