Skip to content

Commit f3a4da2

Browse files
committed
cleanup
1 parent 41dfb71 commit f3a4da2

File tree

6 files changed

+21
-2
lines changed

6 files changed

+21
-2
lines changed

locale/en-us/setting.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,3 +421,6 @@ config.typeFormat.config.auto_complete_table_sep =
421421
'Controls if a separator is automatically appended at the end of a table declaration.'
422422
config.typeFormat.config.format_line =
423423
'Controls if a line is formatted at all.'
424+
425+
command.exportDocument =
426+
'Export Document ...'

locale/pt-br/setting.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,3 +421,6 @@ config.typeFormat.config.auto_complete_table_sep = -- TODO: need translate!
421421
'Controls if a separator is automatically appended at the end of a table declaration.'
422422
config.typeFormat.config.format_line = -- TODO: need translate!
423423
'Controls if a line is formatted at all.'
424+
425+
command.exportDocument = -- TODO: need translate!
426+
'Export Document ...'

locale/zh-cn/setting.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,3 +420,6 @@ config.typeFormat.config.auto_complete_table_sep = -- TODO: need translate!
420420
'Controls if a separator is automatically appended at the end of a table declaration.'
421421
config.typeFormat.config.format_line = -- TODO: need translate!
422422
'Controls if a line is formatted at all.'
423+
424+
command.exportDocument =
425+
'导出文档...'

locale/zh-tw/setting.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,3 +420,6 @@ config.typeFormat.config.auto_complete_table_sep = -- TODO: need translate!
420420
'Controls if a separator is automatically appended at the end of a table declaration.'
421421
config.typeFormat.config.format_line = -- TODO: need translate!
422422
'Controls if a line is formatted at all.'
423+
424+
command.exportDocument = -- TODO: need translate!
425+
'Export Document ...'

script/cli/doc.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,10 @@ function export.runCLI()
309309

310310
local mdPath = doc2md.buildMD(LOGPATH)
311311

312-
print(lang.script('CLI_DOC_DONE', furi.encode(docPath), furi.encode(mdPath)))
312+
print(lang.script('CLI_DOC_DONE'
313+
, ('[%s](%s)'):format(ws.normalize(docPath), furi.encode(docPath))
314+
, ('[%s](%s)'):format(ws.normalize(mdPath), furi.encode(mdPath))
315+
))
313316
end
314317

315318
return export

script/core/command/exportDocument.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@ local doc = require 'cli.doc'
22
local client = require 'client'
33
local furi = require 'file-uri'
44
local lang = require 'language'
5+
local ws = require 'workspace'
56

67
---@async
78
return function (args)
89
local outputPath = args[1] and furi.decode(args[1]) or LOGPATH
910
local docPath, mdPath = doc.makeDoc(outputPath)
10-
client.showMessage('Info', lang.script('CLI_DOC_DONE', furi.encode(docPath), furi.encode(mdPath)))
11+
client.showMessage('Info', lang.script('CLI_DOC_DONE'
12+
, ('[%s](%s)'):format(ws.normalize(docPath), furi.encode(docPath))
13+
, ('[%s](%s)'):format(ws.normalize(mdPath), furi.encode(mdPath))
14+
))
1115
end

0 commit comments

Comments
 (0)