vdoc: move to it's own directory cmd/tools/vdoc/ (#7606)
Before Width: | Height: | Size: 175 B After Width: | Height: | Size: 175 B |
Before Width: | Height: | Size: 642 B After Width: | Height: | Size: 642 B |
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 5.6 KiB |
Before Width: | Height: | Size: 853 B After Width: | Height: | Size: 853 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 499 B After Width: | Height: | Size: 499 B |
Before Width: | Height: | Size: 350 B After Width: | Height: | Size: 350 B |
Before Width: | Height: | Size: 201 B After Width: | Height: | Size: 201 B |
|
@ -37,7 +37,7 @@ enum HighlightTokenTyp {
|
||||||
const (
|
const (
|
||||||
css_js_assets = ['doc.css', 'normalize.css', 'doc.js', 'dark-mode.js']
|
css_js_assets = ['doc.css', 'normalize.css', 'doc.js', 'dark-mode.js']
|
||||||
allowed_formats = ['md', 'markdown', 'json', 'text', 'stdout', 'html', 'htm']
|
allowed_formats = ['md', 'markdown', 'json', 'text', 'stdout', 'html', 'htm']
|
||||||
res_path = os.resource_abs_path('vdoc-resources')
|
res_path = os.resource_abs_path('resources')
|
||||||
favicons_path = os.join_path(res_path, 'favicons')
|
favicons_path = os.join_path(res_path, 'favicons')
|
||||||
vexe = pref.vexe_path()
|
vexe = pref.vexe_path()
|
||||||
vroot = os.dir(vexe)
|
vroot = os.dir(vexe)
|
|
@ -18,7 +18,7 @@ const (
|
||||||
'nonexistant',
|
'nonexistant',
|
||||||
]
|
]
|
||||||
vfmt_verify_list = [
|
vfmt_verify_list = [
|
||||||
'cmd/tools/vdoc.v',
|
'cmd/tools/vdoc/vdoc.v',
|
||||||
'cmd/v/v.v',
|
'cmd/v/v.v',
|
||||||
'vlib/arrays',
|
'vlib/arrays',
|
||||||
'vlib/builtin/array.v',
|
'vlib/builtin/array.v',
|
||||||
|
|
|
@ -125,8 +125,9 @@ pub fn launch_tool(is_verbose bool, tool_name string, args []string) {
|
||||||
set_vroot_folder(vroot)
|
set_vroot_folder(vroot)
|
||||||
tool_args := args_quote_paths(args)
|
tool_args := args_quote_paths(args)
|
||||||
tool_basename := os.real_path(os.join_path(vroot, 'cmd', 'tools', tool_name))
|
tool_basename := os.real_path(os.join_path(vroot, 'cmd', 'tools', tool_name))
|
||||||
tool_exe := path_of_executable(tool_basename)
|
tool_exe := if os.is_dir(tool_basename) { path_of_executable(os.join_path(tool_basename,
|
||||||
tool_source := tool_basename + '.v'
|
tool_name)) } else { path_of_executable(tool_basename) }
|
||||||
|
tool_source := if os.is_dir(tool_basename) { tool_basename } else { tool_basename + '.v' }
|
||||||
tool_command := '"$tool_exe" $tool_args'
|
tool_command := '"$tool_exe" $tool_args'
|
||||||
if is_verbose {
|
if is_verbose {
|
||||||
println('launch_tool vexe : $vroot')
|
println('launch_tool vexe : $vroot')
|
||||||
|
|