From b01d62a012193b592163aa6a052edf7b9adf9c89 Mon Sep 17 00:00:00 2001 From: yugang-amd Date: Wed, 11 Feb 2026 14:31:55 -0500 Subject: [PATCH] add banner display to live docs --- docs/conf.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 1e410ac..a490cb4 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -15,7 +15,7 @@ release = version html_title = f"AMD GPU Driver (amdgpu) {version}" author = "Advanced Micro Devices, Inc." -copyright = "Copyright (c) 2025 Advanced Micro Devices, Inc. All rights reserved." +copyright = "Copyright (c) 2026 Advanced Micro Devices, Inc. All rights reserved." # Supported linux version numbers ubuntu_version_numbers = [('24.04', 'noble'), ('22.04', 'jammy')] @@ -43,6 +43,7 @@ html_theme = "rocm_docs_theme" html_theme_options = { "flavor": "amdgpu", + "announcement": f"AMD GPU Driver 31.10.0 is a technology preview intended for use only with AMD ROCm 7.11.0 technology preview. For production use, continue to use AMD GPU Driver {version} documentation.", "link_main_doc": True, # Add any additional theme options here } @@ -59,6 +60,7 @@ # Add the following replacements to every RST file. rst_prolog = f""" +.. |version| replace:: {version} .. |rocm_version| replace:: {rocm_version} .. |amdgpu_version| replace:: {amdgpu_version} .. |amdgpu_url_version| replace:: {amdgpu_url_version}