Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 436
Export Documentation
⚠️ WarningThis wiki has been replaced by the wiki on our website. This wiki will be removed in the future.
The language server can be used to export documentation of your project as JSON and Markdown.
Example Markdown
A computer or turtle wrapped as a peripheral
A computer will have the type computer while a turtle will have the type turtle
functionComputer.getID()
->ID: integerGet the ID of the computer
@returnID — The ID of the computer
functionComputer.getLabel()
->label: string|nilGet the label of the computer
@returnlabel — The computer's label or nil if it does not have one
functionComputer.isOn()
->isOn: booleanGet whether the computer is on or not
@returnisOn — If the computer is on
functionComputer.reboot()
Reboot or turn on the computer
functionComputer.shutdown()
Shutdown the computer
functionComputer.turnOn()
Turn the computer on
Locate the
lua-language-server.exeon your computer.- If you use VS Code, it can be found at
C:\Users\<USERNAME>\.vscode\extensions\sumneko.lua-XXXX\server\bin\lua-language-server.exe.
- If you use VS Code, it can be found at
From the
bindirectory, run./lua-language-server.exe --doc"<PROJECT_PATH>".Find
doc.jsonanddoc.mdin log location (sumneko.lua-XXXX/server/log).