Skip to content

Commit

Permalink
Add warning about marshmallow 2 EOL (marshmallow-code#1583)
Browse files Browse the repository at this point in the history
* Add warning about marshmallow 2 EOL

ref marshmallow-code#1582

* Add back version warning for latest
  • Loading branch information
sloria committed May 6, 2020
1 parent 9081462 commit 7768828
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,19 +108,16 @@
'This document is for the development version. '
'For the stable version documentation, see <a href="/en/stable/">here</a>.'
),
'stable': (
'This document is for the latest 3.x stable release. '
'For the 2.x documentation, see <a href="/en/2.x-line/">here</a>.'
),
'2.x-line': (
'This document is for the 2.x release branch. '
'For the 3.x documentation, see <a href="/en/stable/">here</a>.'
'marshmallow 2 will no longer be supported as of 2020-08-18. '
'<a href="https://marshmallow.readthedocs.io/en/latest/upgrading.html#upgrading-to-3-0">'
'Update your code to use marshmallow 3</a>.'
),
}
# Show warning at top of page
versionwarning_body_selector = "div.document"
# For debugging locally
# versionwarning_project_version = 'latest'
# versionwarning_project_version = '2.x-line'

# https://docs.readthedocs.io/en/latest/guides/adding-custom-css.html
def setup(app):
Expand Down

0 comments on commit 7768828

Please sign in to comment.