From 9873ce86c30e9bdc3dfb46e9a91c261c67ef6bcf Mon Sep 17 00:00:00 2001 From: ocket8888 Date: Mon, 11 Sep 2023 11:50:54 -0600 Subject: [PATCH 1/2] Fix Sphinx version incompatibility --- docs/source/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/requirements.txt b/docs/source/requirements.txt index ca100b5d8b..1bb8a28fef 100644 --- a/docs/source/requirements.txt +++ b/docs/source/requirements.txt @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -Sphinx>=5.1,<5.2 +Sphinx>=7.0,<7.1 sphinx-rtd-theme>=1.3 sphinx_autodoc_typehints>=1.24 Pygments>=2.6 From 42d5ce66bbec3595fc03b5ce8fafe6e00d2297c4 Mon Sep 17 00:00:00 2001 From: ocket8888 Date: Mon, 11 Sep 2023 11:51:18 -0600 Subject: [PATCH 2/2] Fix bad Content-Type headers in some documented requests --- docs/source/api/v3/asns_id.rst | 2 +- docs/source/api/v3/consistenthash.rst | 2 +- docs/source/api/v4/asns_id.rst | 2 +- docs/source/api/v4/consistenthash.rst | 2 +- docs/source/api/v5/asns_id.rst | 2 +- docs/source/api/v5/consistenthash.rst | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/source/api/v3/asns_id.rst b/docs/source/api/v3/asns_id.rst index 8229f11ecb..f933cf65bd 100644 --- a/docs/source/api/v3/asns_id.rst +++ b/docs/source/api/v3/asns_id.rst @@ -57,7 +57,7 @@ Request Structure Accept: */* Cookie: mojolicious=... Content-Length: 29 - Content-Type: application/x-www-form-urlencoded + Content-Type: application/json {"asn": 2, "cachegroupId": 1} diff --git a/docs/source/api/v3/consistenthash.rst b/docs/source/api/v3/consistenthash.rst index 5e8ee252dc..a2b6db1aa4 100644 --- a/docs/source/api/v3/consistenthash.rst +++ b/docs/source/api/v3/consistenthash.rst @@ -43,7 +43,7 @@ Request Structure Accept: */* Cookie: mojolicious=... Content-Length: 80 - Content-Type: application/x-www-form-urlencoded + Content-Type: application/json {"regex":"/.*?(/.*?/).*?(m3u8)","requestPath":"/test/path/asset.m3u8","cdnId":2} diff --git a/docs/source/api/v4/asns_id.rst b/docs/source/api/v4/asns_id.rst index 6312c46d20..6cf34e1a3b 100644 --- a/docs/source/api/v4/asns_id.rst +++ b/docs/source/api/v4/asns_id.rst @@ -58,7 +58,7 @@ Request Structure Accept: */* Cookie: mojolicious=... Content-Length: 29 - Content-Type: application/x-www-form-urlencoded + Content-Type: application/json {"asn": 2, "cachegroupId": 1} diff --git a/docs/source/api/v4/consistenthash.rst b/docs/source/api/v4/consistenthash.rst index b0d8f18a60..a0ae597fd1 100644 --- a/docs/source/api/v4/consistenthash.rst +++ b/docs/source/api/v4/consistenthash.rst @@ -44,7 +44,7 @@ Request Structure Accept: */* Cookie: mojolicious=... Content-Length: 80 - Content-Type: application/x-www-form-urlencoded + Content-Type: application/json {"regex":"/.*?(/.*?/).*?(m3u8)","requestPath":"/test/path/asset.m3u8","cdnId":2} diff --git a/docs/source/api/v5/asns_id.rst b/docs/source/api/v5/asns_id.rst index 1773fedc45..026cd1f38a 100644 --- a/docs/source/api/v5/asns_id.rst +++ b/docs/source/api/v5/asns_id.rst @@ -58,7 +58,7 @@ Request Structure Accept: */* Cookie: mojolicious=... Content-Length: 29 - Content-Type: application/x-www-form-urlencoded + Content-Type: application/json {"asn": 2, "cachegroupId": 1} diff --git a/docs/source/api/v5/consistenthash.rst b/docs/source/api/v5/consistenthash.rst index ecc6abbfc3..35c4070457 100644 --- a/docs/source/api/v5/consistenthash.rst +++ b/docs/source/api/v5/consistenthash.rst @@ -44,7 +44,7 @@ Request Structure Accept: */* Cookie: mojolicious=... Content-Length: 80 - Content-Type: application/x-www-form-urlencoded + Content-Type: application/json {"regex":"/.*?(/.*?/).*?(m3u8)","requestPath":"/test/path/asset.m3u8","cdnId":2}