Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions docs/source/_templates/version-warning.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{# Deprecated versions (see DEPRECATED_VERSIONS in conf.py) get a single combined
notice that both marks the deprecation and points at the migration guide, in
place of the theme's generic "previous version" banner. Every other version
falls through to the theme's own template, unchanged.

This file lives on the publishing branch on purpose: sphinx-multiversion builds
every version with `-c <publishing tree>/docs/source`, and Sphinx resolves
templates_path against the confdir, so this reaches the frozen scylla-3.*.x
branches too -- none of which need to be touched.

The migration link deliberately points at the guide's root rather than at
upgrade_guide/from_3x/. Page *content* does come from each version's own ref,
and /stable/ is built from the newest release branch in BRANCHES, not from
this one -- so from_3x/ only exists at /stable/ once a release branch is cut
that contains it. Repoint this href then. #}
{% if versions and current_version and latest_version and current_version.name in theme_versions_deprecated %}
<div class="admonition caution">
<p class="admonition-title">Caution</p>
<p>
Java Driver 3.x is deprecated and in maintenance mode &mdash; it receives critical
bug fixes only. New projects and active development should use
<a href="{{ vpathto(latest_version.name) }}">Java Driver 4.x</a>; see the
<a href="{{ html_baseurl }}/stable/upgrade_guide/">migration guide</a>.
</p>
</div>
{% else %}
{% include "!version-warning.html" %}
{% endif %}
9 changes: 8 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,14 @@
# Set which versions are not released yet.
UNSTABLE_VERSIONS = []
# Set which versions are deprecated
DEPRECATED_VERSIONS = []
DEPRECATED_VERSIONS = [
'scylla-3.7.2.x',
'scylla-3.10.2.x',
'scylla-3.11.0.x',
'scylla-3.11.2.x',
'scylla-3.11.4.x',
'scylla-3.11.5.x'
]

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
Expand Down
1 change: 1 addition & 0 deletions docs/source/contents.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
index
api
manual/*
upgrade_guide/from_3x/*
upgrade_guide/*
faq/*
changelog/*
Loading
Loading