We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a881f5e + f32a25e commit 0022e44Copy full SHA for 0022e44
1 file changed
conf.py
@@ -81,6 +81,19 @@ def generateVersionsDocs(current_docs):
81
edit_on_github_project = 'nextcloud/documentation'
82
edit_on_github_branch = 'master'
83
84
+# Automatically add EoL warning banner to docs for unsupported releases
85
+if (version.isdigit() and version < version_start):
86
+ rst_prolog = """.. danger::
87
+ **OUTDATED DOCUMENTATION**
88
+
89
+ *You are viewing documentation for a retired version of Nextcloud.
90
+ Do not follow these instructions for current releases.*
91
92
+ **To ensure you have the most reliable and up-to-date guidance,
93
+ please visit the** `Nextcloud Documentation homepage
94
+ <https://docs.nextcloud.com/>`_.
95
+ """
96
97
# user starts in light mode
98
default_dark_mode = False
99
0 commit comments