We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9e712fa + bc948e3 commit 146aa76Copy full SHA for 146aa76
1 file changed
conf.py
@@ -71,6 +71,19 @@ def generateVersionsDocs(current_docs):
71
edit_on_github_project = 'nextcloud/documentation'
72
edit_on_github_branch = 'master'
73
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
87
# user starts in light mode
88
default_dark_mode = False
89
0 commit comments