Skip to content

docs: add version warning banner for outdated documentation pages#4728

Open
niceysam wants to merge 2 commits intoboto:developfrom
niceysam:feature/version-warning-banner
Open

docs: add version warning banner for outdated documentation pages#4728
niceysam wants to merge 2 commits intoboto:developfrom
niceysam:feature/version-warning-banner

Conversation

@niceysam
Copy link
Copy Markdown

@niceysam niceysam commented Mar 2, 2026

Closes #4368

When users land on a versioned URL (e.g. /api/1.35.6/...) via search engines or bookmarks, they may be reading documentation for an old release without realising it. This is a source of confusion, as noted in the issue and the linked examples.

What this does

Adds docs/source/_static/version_warning.js — a small self-contained script that:

  • Detects versioned URLs at runtime using the pattern /api/<semver>/
  • Injects a visible note at the top of the article content linking to the equivalent /api/latest/ page
  • Also links to the upgrade instructions (as suggested in the issue's proposed wording)
  • Has no effect on /api/latest/ pages — the banner is never shown there

The script is registered in conf.py via the existing html_js_files list, so it is automatically included in every generated HTML page.

Banner wording (matches the proposal in #4368):

Note: This documentation is for a past release of Boto3. To access the latest version, please refer to this page. To update your version of Boto3, follow the instructions here.

The banner uses inline styles so it requires no extra CSS file and works with the existing Furo theme.

niceysam added 2 commits March 2, 2026 10:50
Add a new guide covering common Amazon Bedrock Runtime use cases using
the Converse API, which is the recommended interface for conversational
workloads.

Examples included:
- Basic message with the Converse API
- System prompt usage
- Multi-turn conversation
- Streaming responses with converse_stream
- Cross-region inference with model ID prefix
- Error handling for ThrottlingException and ModelNotReadyException

The Converse API is preferred over the lower-level InvokeModel for most
use cases because it provides a unified message format across all
supported foundation models.
When users land on a versioned URL (e.g. /api/1.35.6/...) via search
engines or bookmarks, they may not realize they're reading outdated
documentation.

This adds a lightweight JavaScript banner that:
- Detects versioned URLs at runtime (/api/<semver>/ pattern)
- Injects a visible note linking to the equivalent /api/latest/ page
- Also links to the upgrade instructions
- Has no effect on /api/latest/ pages

Closes boto#4368
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add banner to documentation referencing link to latest version

1 participant