Skip to content

Commit

Permalink
fix asciidoc preview when antora is using version: true
Browse files Browse the repository at this point in the history
Fixes #829
  • Loading branch information
leonardopavanrocha authored and Leonardo Pavan Rocha committed Apr 23, 2024
1 parent 56b0d49 commit e164c6b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/features/antora/antoraSupport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ export class AntoraConfig {
const path = uri.path
this.contentSourceRootPath = path.slice(0, path.lastIndexOf('/'))
this.contentSourceRootFsPath = ospath.dirname(uri.fsPath)
if (config.version === true) {
config.version = ''
}
}
}

Expand Down

0 comments on commit e164c6b

Please sign in to comment.