Skip to content

Commit 146aa76

Browse files
Merge pull request #13675 from nextcloud/backport/13647/stable29
[stable29] feat: Automated EoL warning banner for unsupported releases
2 parents 9e712fa + bc948e3 commit 146aa76

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

conf.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,19 @@ def generateVersionsDocs(current_docs):
7171
edit_on_github_project = 'nextcloud/documentation'
7272
edit_on_github_branch = 'master'
7373

74+
# Automatically add EoL warning banner to docs for unsupported releases
75+
if (version.isdigit() and version < version_start):
76+
rst_prolog = """.. danger::
77+
**OUTDATED DOCUMENTATION**
78+
79+
*You are viewing documentation for a retired version of Nextcloud.
80+
Do not follow these instructions for current releases.*
81+
82+
**To ensure you have the most reliable and up-to-date guidance,
83+
please visit the** `Nextcloud Documentation homepage
84+
<https://docs.nextcloud.com/>`_.
85+
"""
86+
7487
# user starts in light mode
7588
default_dark_mode = False
7689

0 commit comments

Comments
 (0)