another try

This commit is contained in:
Robert Jelic
2025-09-13 10:03:11 +02:00
parent 1d45cfe38c
commit 328590e256
2 changed files with 8 additions and 5 deletions

View File

@@ -2,6 +2,7 @@ local VisualElement = require("elements/VisualElement")
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.
--- This is the tree class. It provides a hierarchical view of nodes that can be expanded and collapsed,
--- with support for selection and scrolling.
---@class Tree : VisualElement

View File

@@ -1,11 +1,13 @@
local BasaltDoc = {}
local args = {...}
local docsPath = fs.getDir(args[2])
local defaultPath = package.path
local format = "path;/path/?.lua;/path/?/init.lua;"
local main = format:gsub("path", docsPath)
package.path = main.."rom/?;"..defaultPath
if fs then
local args = {...}
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")