File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,19 @@ def generateVersionsDocs(current_docs):
9090edit_on_github_project = 'nextcloud/documentation'
9191edit_on_github_branch = 'master'
9292
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+
93106# user starts in light mode
94107default_dark_mode = False
95108
You can’t perform that action at this time.
0 commit comments