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.
1 parent 26f435c commit 0a53da6Copy full SHA for 0a53da6
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 software.
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** `official Nextcloud Documentation library
100
+ <https://docs.nextcloud.com/>`_.
101
+ """
102
103
# user starts in light mode
104
default_dark_mode = False
105
0 commit comments