another try
This commit is contained in:
@@ -2,6 +2,7 @@ local VisualElement = require("elements/VisualElement")
|
|||||||
local sub = string.sub
|
local sub = string.sub
|
||||||
---@cofnigDescription The tree element provides a hierarchical view of nodes that can be expanded and collapsed, with support for selection and scrolling.
|
---@cofnigDescription The tree element provides a hierarchical view of nodes that can be expanded and collapsed, with support for selection and scrolling.
|
||||||
|
|
||||||
|
|
||||||
--- This is the tree class. It provides a hierarchical view of nodes that can be expanded and collapsed,
|
--- This is the tree class. It provides a hierarchical view of nodes that can be expanded and collapsed,
|
||||||
--- with support for selection and scrolling.
|
--- with support for selection and scrolling.
|
||||||
---@class Tree : VisualElement
|
---@class Tree : VisualElement
|
||||||
|
|||||||
@@ -1,11 +1,13 @@
|
|||||||
local BasaltDoc = {}
|
local BasaltDoc = {}
|
||||||
|
|
||||||
local args = {...}
|
|
||||||
local docsPath = fs.getDir(args[2])
|
|
||||||
local defaultPath = package.path
|
local defaultPath = package.path
|
||||||
local format = "path;/path/?.lua;/path/?/init.lua;"
|
if fs then
|
||||||
local main = format:gsub("path", docsPath)
|
local args = {...}
|
||||||
package.path = main.."rom/?;"..defaultPath
|
local docsPath = fs.getDir(args[2])
|
||||||
|
local format = "path;/path/?.lua;/path/?/init.lua;"
|
||||||
|
local main = format:gsub("path", docsPath)
|
||||||
|
package.path = main.."rom/?;"..defaultPath
|
||||||
|
end
|
||||||
|
|
||||||
local ok1, classParser = pcall(require, "parsers.classParser")
|
local ok1, classParser = pcall(require, "parsers.classParser")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user