I have tried to add a type signature to the lua and then generate the documentation as lua-users wiki: Documenting Lua Code suggested. However, it is far less elegant than TypeScript.
the npm project is cloned from https://github.com/TypeStrong/typedoc/tree/master/example
Export Documentation ยท LuaLS/lua-language-server Wiki --> example: computer
git - html export different branch - Stack Overflow
git submodule add -b gh-pages git@github.com:DDLife/DST-ts.git docs/
nothing happens
git submodule add -f -b gh-pages git@github.com:DDLife/DST-ts.git docs/
typedoc will overwrite the docs folder, so create the subfolder docs/docs
to store the generated docs.