Skip to content

Commit 328590e

Browse files
committed
another try
1 parent 1d45cfe commit 328590e

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/elements/Tree.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ local VisualElement = require("elements/VisualElement")
22
local sub = string.sub
33
---@cofnigDescription The tree element provides a hierarchical view of nodes that can be expanded and collapsed, with support for selection and scrolling.
44

5+
56
--- This is the tree class. It provides a hierarchical view of nodes that can be expanded and collapsed,
67
--- with support for selection and scrolling.
78
---@class Tree : VisualElement

tools/BasaltDoc/init.lua

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
local BasaltDoc = {}
22

3-
local args = {...}
4-
local docsPath = fs.getDir(args[2])
53
local defaultPath = package.path
6-
local format = "path;/path/?.lua;/path/?/init.lua;"
7-
local main = format:gsub("path", docsPath)
8-
package.path = main.."rom/?;"..defaultPath
4+
if fs then
5+
local args = {...}
6+
local docsPath = fs.getDir(args[2])
7+
local format = "path;/path/?.lua;/path/?/init.lua;"
8+
local main = format:gsub("path", docsPath)
9+
package.path = main.."rom/?;"..defaultPath
10+
end
911

1012
local ok1, classParser = pcall(require, "parsers.classParser")
1113

0 commit comments

Comments
 (0)