2 parents 61b8b38 + bd129e7 commit 2c05a63Copy full SHA for 2c05a63
1 file changed
conf.py
@@ -87,6 +87,19 @@ def generateVersionsDocs(current_docs):
87
edit_on_github_project = 'nextcloud/documentation'
88
edit_on_github_branch = 'master'
89
90
+# Automatically add EoL warning banner to docs for unsupported releases
91
+if (version.isdigit() and version < version_start):
92
+ rst_prolog = """.. danger::
93
+ **OUTDATED DOCUMENTATION**
94
+
95
+ *You are viewing documentation for a retired version of Nextcloud.
96
+ Do not follow these instructions for current releases.*
97
98
+ **To ensure you have the most reliable and up-to-date guidance,
99
+ please visit the** `Nextcloud Documentation homepage
100
+ <https://docs.nextcloud.com/>`_.
101
+ """
102
103
# user starts in light mode
104
default_dark_mode = False
105
0 commit comments