diff --git a/doc/site/.luarc.doc.json b/doc/site/.luarc.doc.json new file mode 100644 index 0000000000..cfcecba35e --- /dev/null +++ b/doc/site/.luarc.doc.json @@ -0,0 +1,33 @@ +{ + "$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json", + "runtime.version": "Lua 5.1", + "completion.requireSeparator": "/", + "runtime.builtin": { + "basic": "disable", + "bit": "disable", + "bit32": "disable", + "builtin": "disable", + "coroutine": "disable", + "debug": "disable", + "ffi": "disable", + "io": "disable", + "jit": "disable", + "math": "disable", + "os": "disable", + "package": "disable", + "string": "disable", + "table": "disable", + "table.clear": "disable", + "table.new": "disable", + "utf8": "disable" + }, + "runtime.path": [ + "?", + "?.lua" + ], + "runtime.special": { + "VFS.Include": "require", + "include": "require", + "shard_include": "require" + } +} diff --git a/doc/site/README.md b/doc/site/README.md index 2fa9462992..6cd9f1cec7 100644 --- a/doc/site/README.md +++ b/doc/site/README.md @@ -15,12 +15,12 @@ Navigate to http://localhost:4000/spring ## Generating LDoc -Have [LDoc](https://github.com/lunarmodules/LDoc) installed or available at your `$PATH`. +Have [Lua Language Server](https://luals.github.io/) installed or available at your `$PATH`. -Inside `doc/LDoc` run: +Inside `doc/site` run: ```bash -ldoc -c config.ld . +lua-language-server --configpath .luarc.doc.json --doc ../.. --doc_out_path _data ``` Keep in mind to see changes on the site you might have to restart jekyll.