vdoc: move to it's own directory cmd/tools/vdoc/ (#7606)

pull/7608/head^2
Daniel Däschle 2020-12-27 13:43:23 +01:00 committed by GitHub
parent c9081a8df8
commit 929a002229
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
26 changed files with 5 additions and 4 deletions

View File

Before

Width:  |  Height:  |  Size: 175 B

After

Width:  |  Height:  |  Size: 175 B

View File

Before

Width:  |  Height:  |  Size: 642 B

After

Width:  |  Height:  |  Size: 642 B

View File

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

View File

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View File

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

View File

Before

Width:  |  Height:  |  Size: 853 B

After

Width:  |  Height:  |  Size: 853 B

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

View File

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

View File

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

Before

Width:  |  Height:  |  Size: 499 B

After

Width:  |  Height:  |  Size: 499 B

View File

Before

Width:  |  Height:  |  Size: 350 B

After

Width:  |  Height:  |  Size: 350 B

View File

Before

Width:  |  Height:  |  Size: 201 B

After

Width:  |  Height:  |  Size: 201 B

View File

@ -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)

View File

@ -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',

View File

@ -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')