docscheck.lua 331 B

1234567891011121314
  1. ---
  2. -- Validate documentation for Premkake APIs.
  3. ---
  4. local count = 0
  5. for k,v in pairs(premake.field._loweredList) do
  6. local docfilepath = "../website/docs/" .. k .. ".md"
  7. local exists = os.isfile(docfilepath)
  8. if not exists then
  9. print("Missing documentation file for: ", k)
  10. count = count + 1
  11. end
  12. end
  13. os.exit(count)