Repository: SciTools/iris (language: python)

Issue:
DOCS: Remove sphinx temporary maximum pin
## 📰 Custom Issue
<!-- Provide a clear description of what the issue is, and we'll try our best to help 😀 -->
Remove the temporary maximum `pip` pin `sphinx<5` introduced into the `setup.py` by #5122


Discussion / hints:

Fix patch:
diff --git a/docs/src/conf.py b/docs/src/conf.py
index 2fb62b256e..03c41b9b75 100644
--- a/docs/src/conf.py
+++ b/docs/src/conf.py
@@ -379,16 +379,6 @@ def _dotv(version):
 html_static_path = ["_static"]
 html_style = "theme_override.css"
 
-# this allows for using datatables: https://datatables.net/.
-# the version can be manually upgraded by changing the urls below.
-html_css_files = [
-    "https://cdn.datatables.net/1.13.4/css/jquery.dataTables.min.css",
-]
-
-html_js_files = [
-    "https://cdn.datatables.net/1.13.4/js/jquery.dataTables.min.js",
-]
-
 # url link checker.  Some links work but report as broken, lets ignore them.
 # See https://www.sphinx-doc.org/en/1.2/config.html#options-for-the-linkcheck-builder
 linkcheck_ignore = [
diff --git a/docs/src/voted_issues.rst b/docs/src/voted_issues.rst
index 33d1982a7b..116c997f33 100644
--- a/docs/src/voted_issues.rst
+++ b/docs/src/voted_issues.rst
@@ -20,6 +20,12 @@ the below table.
 
 .. raw:: html
 
+   <!-- Must import jquery before the datatables css and js files. -->
+   <script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
+   <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/2.0.3/css/dataTables.dataTables.min.css">
+   <script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/2.0.3/js/dataTables.min.js"></script>
+
+
    <table id="voted_issues_table" class="hover row-border order-column" style="width:100%">
       <thead>
          <tr>
diff --git a/requirements/py310.yml b/requirements/py310.yml
index c5ef74d508..f465c58250 100644
--- a/requirements/py310.yml
+++ b/requirements/py310.yml
@@ -48,7 +48,7 @@ dependencies:
   - requests
 
 # Documentation dependencies.
-  - sphinx <=5.3
+  - sphinx
   - sphinxcontrib-apidoc
   - sphinx-copybutton
   - sphinx-gallery >=0.11.0
diff --git a/requirements/py311.yml b/requirements/py311.yml
index d2c41d42c2..75827e5681 100644
--- a/requirements/py311.yml
+++ b/requirements/py311.yml
@@ -48,7 +48,7 @@ dependencies:
   - requests
 
 # Documentation dependencies.
-  - sphinx <=5.3
+  - sphinx
   - sphinxcontrib-apidoc
   - sphinx-copybutton
   - sphinx-gallery >=0.11.0
diff --git a/requirements/py312.yml b/requirements/py312.yml
index 8eb5bf6048..b5d2043d6c 100644
--- a/requirements/py312.yml
+++ b/requirements/py312.yml
@@ -48,7 +48,7 @@ dependencies:
   - requests
 
 # Documentation dependencies.
-  - sphinx <=5.3
+  - sphinx
   - sphinxcontrib-apidoc
   - sphinx-copybutton
   - sphinx-gallery >=0.11.0


Test patch:
diff --git a/docs/src/whatsnew/latest.rst b/docs/src/whatsnew/latest.rst
index ada5f0f4c6..3d34b932bd 100644
--- a/docs/src/whatsnew/latest.rst
+++ b/docs/src/whatsnew/latest.rst
@@ -63,7 +63,9 @@ This document explains the changes made to Iris for this release
 🔗 Dependencies
 ===============
 
-#. N/A
+#. `@tkknight`_ removed the pin for ``sphinx <=5.3``, so the latest should 
+   now be used, currently being v7.2.6.
+   (:pull:`5901`)
 
 
 📚 Documentation