From 7a713be25826fb509d52cb1ad3e13eaa40299239 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mois=C3=A9s=20Calzado?= Date: Fri, 16 Dec 2022 11:18:36 +0100 Subject: [PATCH 1/2] Add deprecation notice in docs --- NEWS.md | 1 + README.md | 7 +++++++ .../source/_static/deprecation_popup.js | 19 +++++++++++++++++++ doc/manual/source/conf.py | 4 ++++ 4 files changed, 31 insertions(+) create mode 100644 doc/manual/source/_static/deprecation_popup.js diff --git a/NEWS.md b/NEWS.md index 56a91659b8..83c0a0d5d8 100644 --- a/NEWS.md +++ b/NEWS.md @@ -100,6 +100,7 @@ Development - Add AUTODETECT_SIZE_LIMIT to ogr2ogr process when guessing CSV file column types [#16431](https://github.com/CartoDB/cartodb/pull/16431) - Log pg locks if there is any problem during a sync table import process [#16432](https://github.com/CartoDB/cartodb/pull/16432) - Check pg locks during sync table swap and terminate locking queries [#16433](https://github.com/CartoDB/cartodb/pull/16433) +- Add deprecation notice in docs [#16446](https://github.com/CartoDB/cartodb/pull/16446) 4.45.0 (2021-04-14) ------------------- diff --git a/README.md b/README.md index 959e85980f..b440dd988c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,10 @@ +# [DEPRECATED] + +Hey! This content applies only to previous CARTO products + +Please check if it's relevant to your use case. On October 2021 we released the current version of our platform. +You can learn more and read the latest documentation at docs.carto.com + # What is CARTO? [![Code Climate](https://codeclimate.com/github/CartoDB/cartodb20.png)](https://codeclimate.com/github/CartoDB/cartodb20) diff --git a/doc/manual/source/_static/deprecation_popup.js b/doc/manual/source/_static/deprecation_popup.js new file mode 100644 index 0000000000..650fbfb777 --- /dev/null +++ b/doc/manual/source/_static/deprecation_popup.js @@ -0,0 +1,19 @@ +function ready() { + var div = document.createElement("div"); + div.style.position = 'absolute', + div.style.bottom = '0' + div.style.left = '0' + div.style.right = '0' + div.style.with = '100%' + div.style.padding = '10px' + div.innerHTML = ` +

Hey! This content applies only to previous CARTO products

+

Please check if it's relevant to your use case. On October 2021 we released a new version of our platform.

+

You can learn more and read the latest documentation at docs.carto.com

+ `; + + document.getElementsByTagName("nav")[0].appendChild(div); +} + + +document.addEventListener("DOMContentLoaded", ready); diff --git a/doc/manual/source/conf.py b/doc/manual/source/conf.py index fea00a5f63..7dd9c8dfe5 100644 --- a/doc/manual/source/conf.py +++ b/doc/manual/source/conf.py @@ -267,3 +267,7 @@ texinfo_documents = [ # Example configuration for intersphinx: refer to the Python standard library. intersphinx_mapping = {'http://docs.python.org/': None} + +html_js_files = [ + 'deprecation_popup.js' +] From 3e6d1b1e1759263e306e5da4d53867cef8fe86f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mois=C3=A9s=20Calzado?= Date: Tue, 3 Jan 2023 10:23:28 +0100 Subject: [PATCH 2/2] Dummy change --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b440dd988c..8c633a00c3 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [DEPRECATED] -Hey! This content applies only to previous CARTO products +Hey! This content applies only to previous CARTO products. Please check if it's relevant to your use case. On October 2021 we released the current version of our platform. You can learn more and read the latest documentation at docs.carto.com