.
This commit is contained in:
1
.github/workflows/main.yml
vendored
1
.github/workflows/main.yml
vendored
@@ -51,6 +51,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Generate Documentation
|
- name: Generate Documentation
|
||||||
run: |
|
run: |
|
||||||
|
mkdir -p build_docs/docs/references
|
||||||
lua tools/generate-docs.lua
|
lua tools/generate-docs.lua
|
||||||
|
|
||||||
cp -r build_docs/docs/references/* gh-pages/docs/references/
|
cp -r build_docs/docs/references/* gh-pages/docs/references/
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -85,7 +85,10 @@ else
|
|||||||
end
|
end
|
||||||
|
|
||||||
if not fileSystem.exists(OUT_DIR) then
|
if not fileSystem.exists(OUT_DIR) then
|
||||||
|
print("Output directory does not exist, creating it...")
|
||||||
fileSystem.makeDir(OUT_DIR)
|
fileSystem.makeDir(OUT_DIR)
|
||||||
|
else
|
||||||
|
print("Output directory already exists")
|
||||||
end
|
end
|
||||||
|
|
||||||
local function getLuaFiles(dir)
|
local function getLuaFiles(dir)
|
||||||
@@ -106,6 +109,7 @@ local function getLuaFiles(dir)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local luaFiles = getLuaFiles(SRC_DIR)
|
local luaFiles = getLuaFiles(SRC_DIR)
|
||||||
|
print("Found " .. #luaFiles .. " Lua files to process")
|
||||||
|
|
||||||
for _, filePath in ipairs(luaFiles) do
|
for _, filePath in ipairs(luaFiles) do
|
||||||
local file = fileSystem.open(filePath, "r")
|
local file = fileSystem.open(filePath, "r")
|
||||||
|
|||||||
Reference in New Issue
Block a user