Skip to content

Commit 6892d3c

Browse files
fix asciidoc preview when antora is using version: true (#871)
1 parent 56b0d49 commit 6892d3c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/features/antora/antoraSupport.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ export class AntoraConfig {
2525
const path = uri.path
2626
this.contentSourceRootPath = path.slice(0, path.lastIndexOf('/'))
2727
this.contentSourceRootFsPath = ospath.dirname(uri.fsPath)
28+
if (config.version === true) {
29+
config.version = ''
30+
}
2831
}
2932
}
3033

0 commit comments

Comments
 (0)