Skip to content

Commit d9da18a

Browse files
committed
Export @alias and @enum into docs with file path
1 parent 24b9faa commit d9da18a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

script/cli/doc/export.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,11 @@ export.makeDocObject['INIT'] = function(source, has_seen)
147147
end
148148

149149
export.makeDocObject['doc.alias'] = function(source, obj, has_seen)
150+
obj.file = export.getLocalPath(guide.getUri(source))
151+
end
150152

153+
export.makeDocObject['doc.enum'] = function(source, obj, has_seen)
154+
obj.file = export.getLocalPath(guide.getUri(source))
151155
end
152156

153157
export.makeDocObject['doc.field'] = function(source, obj, has_seen)
@@ -256,6 +260,7 @@ export.makeDocObject['variable'] = function(source, obj, has_seen)
256260
or set.type == 'setmethod'
257261
or set.type == 'setindex'
258262
or set.type == 'doc.alias'
263+
or set.type == 'doc.enum'
259264
or set.type == 'doc.class'
260265
then
261266
table.insert(obj.defines, export.documentObject(set, has_seen))

0 commit comments

Comments
 (0)