Skip to content

Commit

Permalink
Flyout: don't show "Versions" section if single_version=true
Browse files Browse the repository at this point in the history
* Related #97
* Related #140
  • Loading branch information
humitos committed Sep 21, 2023
1 parent fca13d3 commit 91f407a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/readthedocs-addons.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/readthedocs-addons.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/flyout.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ export class FlyoutElement extends LitElement {
renderVersions() {
if (
!this.config.addons.flyout.versions ||
!this.config.addons.flyout.versions.length
!this.config.addons.flyout.versions.length ||
this.config.projects.current.single_version
) {
return nothing;
}
Expand Down

0 comments on commit 91f407a

Please sign in to comment.