Skip to content

Commit

Permalink
[docgen] Cleanup folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiashienzsch committed Oct 20, 2023
1 parent 77a6d25 commit a8bd420
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion tool/jml-docgen/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ generate: out

.PHONY: stubs
stubs: out
@${JML_VIEWER} test -s main.lua
@${JML_VIEWER} test -s src/main.lua

out:
@mkdir -p out
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,7 @@ local function parse_return_type(e)
template_arg = captured
end)

if not template_arg then
print(ret_type)
assert(false)
end

print(template_arg, ret_type)
assert(template_arg)
return strings.trim(template_arg)
end
end
Expand Down Expand Up @@ -172,7 +167,7 @@ function doxygen.parse_xml(type_name)
end
end

local f = io.open(string.format("out/json/%s.json", type_name), "w")
local f = io.open(string.format("../out/json/%s.json", type_name), "w")
f:write(json.encode(results))
f:close()

Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions tool/jml-docgen/main.lua → tool/jml-docgen/src/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ local classes = {

}

local readme = io.open("README.md", "w")
local readme = io.open("../README.md", "w")
markdown.write_usertype(readme, classes)
readme:close()

ldoc.write_usertype_stubs("out/lua", classes)
ldoc.write_usertype_stubs("../out/lua", classes)
File renamed without changes.
2 changes: 1 addition & 1 deletion tool/jml-docgen/sol2.lua → tool/jml-docgen/src/sol2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,6 @@ local function write_all_juce_types(file_path)
end

test()
write_all_juce_types("out/types.txt")
write_all_juce_types("../out/types.txt")

return sol2
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit a8bd420

Please sign in to comment.