We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bbc978c + 9be24d8 commit ed6eff6Copy full SHA for ed6eff6
1 file changed
conf.py
@@ -90,6 +90,19 @@ def generateVersionsDocs(current_docs):
90
edit_on_github_project = 'nextcloud/documentation'
91
edit_on_github_branch = 'master'
92
93
+# Automatically add EoL warning banner to docs for unsupported releases
94
+if (version.isdigit() and version < version_start):
95
+ rst_prolog = """.. danger::
96
+ **OUTDATED DOCUMENTATION**
97
+
98
+ *You are viewing documentation for a retired version of Nextcloud.
99
+ Do not follow these instructions for current releases.*
100
101
+ **To ensure you have the most reliable and up-to-date guidance,
102
+ please visit the** `Nextcloud Documentation homepage
103
+ <https://docs.nextcloud.com/>`_.
104
+ """
105
106
# user starts in light mode
107
default_dark_mode = False
108
0 commit comments