Removing deprecated functions from readthedocs

Change-Id: I3c48c75dd5c9c5ebb01753322be29fdce7ef29d2
Signed-off-by: czichy <thoralf.czichy@nokia.com>
diff --git a/.readthedocs.yaml b/.readthedocs.yaml
index 095222a..864f935 100644
--- a/.readthedocs.yaml
+++ b/.readthedocs.yaml
@@ -1,14 +1,19 @@
 ---
+# .readthedocs.yml
+# Read the Docs configuration file
+# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
+# Required
 version: 2
 
 formats:
   - htmlzip
 
 build:
-  image: latest
+  os: "ubuntu-22.04"
+  tools: 
+    python: "3.7"
 
 python:
-  version: 3.7
   install:
     - requirements: docs/requirements-docs.txt
 
diff --git a/docs/index.rst b/docs/index.rst
index b0465f1..75debaf 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -40,4 +40,5 @@
 
 * :ref:`genindex`
 * :ref:`modindex`
-* :ref:`search`
\ No newline at end of file
+* :ref:`search`
+
diff --git a/tox.ini b/tox.ini
index ac38348..18bbdaa 100644
--- a/tox.ini
+++ b/tox.ini
@@ -18,11 +18,12 @@
     sphinxcontrib-httpdomain
     recommonmark
     lfdocs-conf
+    urllib3~=1.26.15
 
 commands =
     sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
     echo "Generated docs available in {toxinidir}/docs/_build/html"
-whitelist_externals = echo
+allowlist_externals = echo
 
 [testenv:docs-linkcheck]
 passenv =
@@ -35,4 +36,5 @@
        sphinxcontrib-httpdomain
        recommonmark
        lfdocs-conf
+       urllib3~=1.26.15
 commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck