Move docs to luacs-docs/{lua,cs,landing-page}

luacs-docs/cs also has a proper http server for testing locally
This commit is contained in:
peelz
2022-08-03 21:34:42 -04:00
parent 53ea2b8973
commit 1bb7843811
136 changed files with 2208 additions and 2113 deletions

View File

@@ -0,0 +1,35 @@
-- luacheck: ignore 111
--[[--
Provides steam integration.
]]
-- @code Steam
-- @pragma nostrip
local Steam = {}
--- Downloads an item from workshop and places it in a folder.
-- @tparam string itemID
-- @tparam string destinationFolder
-- @tparam function callback
-- @realm shared
-- @usage
-- Steam.DownloadWorkshopItem("2805065898", "LocalMods/MyMod/Temp/Download", function(workshopItem)
-- if workshopItem == nil then print("failed to download workshop item") return end
--
-- print(workshopItem.Title .. " has been successfully downloaded.")
-- end)
function Steam.DownloadWorkshopItem(id, destinationFolder, callback) end
--- Gets information about a workshop item.
-- @tparam string itemID
-- @tparam function callback
-- @realm shared
function Steam.GetWorkshopItem(id, callback) end
--- Callback is called with the list of all workshop items inside the specified collection.
-- @tparam string itemID
-- @tparam function callback
-- @realm shared
function Steam.GetWorkshopCollection(id, callback) end