Skip to content

Commit 9f75077

Browse files
authored
fix: remove old API docs versions (/v2-old and /v2-redoc) (#1527)
Time to say goodbye to the old API docs versions (apiary, redoc).
1 parent e49a05f commit 9f75077

File tree

8 files changed

+2900
-6482
lines changed

8 files changed

+2900
-6482
lines changed

docusaurus.config.js

-16
Original file line numberDiff line numberDiff line change
@@ -139,22 +139,6 @@ module.exports = {
139139
},
140140
}),
141141
],
142-
[
143-
'redocusaurus',
144-
/** @type {import('redocusaurus').PresetEntry} */
145-
{
146-
config: join(__dirname, '.redocly.yaml'),
147-
specs: [
148-
{
149-
spec: './apify-api/openapi/openapi.yaml',
150-
route: '/api/v2-redoc/',
151-
},
152-
],
153-
theme: {
154-
primaryColor: '#1f9ec8',
155-
},
156-
},
157-
],
158142
]),
159143
plugins: [
160144
[

nginx.conf

+2-2
Original file line numberDiff line numberDiff line change
@@ -405,11 +405,11 @@ server {
405405
rewrite ^/api/v2/users-account-and-usage-limits$ /api/v2/users permanent;
406406

407407
# api/v2-new to api/v2
408-
409408
rewrite ^/api/v2-new(.*)$ /api/v2$1 permanent;
409+
rewrite ^/api/v2-old(.*)$ /api/v2$1 permanent;
410+
rewrite ^/api/v2-redoc(.*)$ /api/v2$1 permanent;
410411

411412
# Actor marketing playbook addition
412-
413413
rewrite ^/academy/get-most-of-actors$ /academy/actor-marketing-playbook permanent;
414414

415415
}

package-lock.json

+2,897-1,075
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"typescript-eslint": "^8.29.1"
6767
},
6868
"dependencies": {
69-
"@apify/ui-library": "^0.63.0",
69+
"@apify/ui-library": "^0.64.0",
7070
"@docusaurus/core": "3.7.0",
7171
"@docusaurus/faster": "3.7.0",
7272
"@docusaurus/plugin-client-redirects": "3.7.0",
@@ -92,7 +92,6 @@
9292
"react": "^18.3.1",
9393
"react-dom": "^18.3.1",
9494
"react-github-btn": "^1.4.0",
95-
"redocusaurus": "^2.1.1",
9695
"search-insights": "2.17.3",
9796
"styled-components": "6.1.17",
9897
"unist-util-visit": "^5.0.0"

0 commit comments

Comments
 (0)