We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
vdoc
1 parent aebe9bc commit 81afd8fCopy full SHA for 81afd8f
1 file changed
cmd/tools/vdoc/vdoc.v
@@ -303,12 +303,18 @@ fn (mut vd VDoc) generate_docs_from_file() {
303
} else {
304
os.dir(cfg.input_path)
305
}
306
- manifest_path := os.join_path(dir_path, 'v.mod')
+ manifest_path := if cfg.is_vlib {
307
+ os.join_path(vroot, 'v.mod')
308
+ } else {
309
+ os.join_path(dir_path, 'v.mod')
310
+ }
311
if os.exists(manifest_path) {
312
vd.vprintln('Reading v.mod info from ${manifest_path}')
313
if manifest := vmod.from_file(manifest_path) {
314
vd.manifest = manifest
315
316
+ } else if cfg.is_vlib {
317
+ assert false, 'vdoc: manifest does not exist for vlib'
318
319
if cfg.include_readme || cfg.is_vlib {
320
mut readme_name := 'README'
0 commit comments