Skip to content

Commit

Permalink
Update version notice
Browse files Browse the repository at this point in the history
  • Loading branch information
jobisoft committed Nov 30, 2023
1 parent 0397908 commit 75f82ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion _extensions/versionwarning/_static/js/versionwarning.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function injectVersionWarningBanner(running_version, highest_version, config, ve
);

var body = $(config.banner.body_selector);
body.prepend(warning);
body.after(warning);
}
}

Expand Down
5 changes: 2 additions & 3 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,15 @@
html_static_path = ['_static']

# Configure headers
versionwarning_body_selector = 'div[itemprop="articleBody"]'
versionwarning_body_selector = 'div[itemprop="articleBody"] h1'

versionwarning_latest_type = 'warning'
versionwarning_latest_title = 'Warning'
versionwarning_latest_message = 'This is the API documentation for Thunderbird Beta. See version {newest} for the current ESR of Thunderbird.'

versionwarning_latest_mv3_type = 'danger'
versionwarning_latest_mv3_title = 'Warning (Manifest v3)'
versionwarning_latest_mv3_message = 'This is the API documentation for the upcoming Manifest v3 specification for Thunderbird Beta. See version {newest} for the current ESR of Thunderbird.'

versionwarning_latest_mv3_message = 'The Manifest v3 specification of Thunderbird is not finalized yet and will continue to change. More information can be found in our <a href="https://developer.thunderbird.net/add-ons/manifest-v3/">Manifest V3 announcement</a>.<br><br>See version {newest} for the Manifest V2 documentation of the current ESR of Thunderbird.'

versionwarning_current_type = 'note'
versionwarning_current_title = 'Note'
Expand Down

0 comments on commit 75f82ce

Please sign in to comment.