diff --git a/conf.py b/conf.py index edac8e878f..bcd2f8dd0a 100644 --- a/conf.py +++ b/conf.py @@ -237,6 +237,13 @@ def wrapper(*args, **kwargs): "pytorch_project": "tutorials", "llm_disabled": False, "canonical_url": "https://docs.pytorch.org/tutorials/", + # Announcement Banner Configuration + "announcement_banner": { + "text": "Help us understand how you use PyTorch! Take our quick survey.", + "url": "https://docs.google.com/forms/d/e/1FAIpQLSfsGAWBcfutRcbO6kfrShBMOMmRuBezRjjOcXk0e9I9luBzvQ/viewform", + "link_text": "Take Survey", + "dismissible": True, + }, } theme_variables = pytorch_sphinx_theme2.get_theme_variables()