Skip to content

Commit

Permalink
Reverted display version in documentation
Browse files Browse the repository at this point in the history
The display version should be configured in Antora to avoid confusion.
  • Loading branch information
abuijze committed Oct 2, 2024
1 parent 3661e49 commit 9f6c1d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions src/helpers/displayVersion.js

This file was deleted.

6 changes: 3 additions & 3 deletions src/partials/page-versions.hbs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{{#with page.versions}}
<div class="page-versions">
<button class="version-menu-toggle" title="Show other versions of page">{{{displayVersion @root.page.componentVersion.displayVersion}}}</button>
<button class="version-menu-toggle" title="Show other versions of page">{{@root.page.componentVersion.displayVersion}}</button>
<div class="version-menu toolbar_dropdown_menu card">
{{#each this}}
<a class="version item
<a class="version item
{{~#if (eq ./version @root.page.version)}} is-current{{/if~}}
{{~#if ./missing}} is-missing{{/if}}" href="{{{relativize ./url}}}">{{{displayVersion ./displayVersion}}}</a>
{{~#if ./missing}} is-missing{{/if}}" href="{{{relativize ./url}}}">{{./displayVersion}}</a>
{{/each}}
</div>
</div>
Expand Down

0 comments on commit 9f6c1d1

Please sign in to comment.