Skip to content

Commit 6a0fa6e

Browse files
rochdevtlhunter
andauthored
fix api docs links redirecting to incorrect urls (#6617)
* fix api docs links redirecting to incorrect urls * add todo and warning Co-authored-by: Thomas Hunter II <tlhunter@datadog.com> --------- Co-authored-by: Thomas Hunter II <tlhunter@datadog.com>
1 parent 22c2dd8 commit 6a0fa6e

File tree

1 file changed

+27
-14
lines changed

1 file changed

+27
-14
lines changed

docs/add-redirects.sh

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,48 @@
11
#!/usr/bin/env bash
22

33
# Previously, URLs to plugin pages looked like this:
4-
# interfaces/plugins.amqp10.html
4+
# interfaces/export_.plugins.connect.html
55
#
66
# Now, with an updated typedoc and updated types, they look like this:
7-
# interfaces/export_.plugins.connect.html
8-
#
7+
# interfaces/plugins.amqp10.html
8+
#
99
# This script automatically generates basic HTML files to redirect users who
1010
# visit the old URLs to the new URL.
1111

1212
echo "writing redirects..."
13+
# TODO(2026-10-07): Delete this file and remove from docs/package.json
14+
# NOTE: Do not add any new entries to this list
1315

1416
declare -a plugins=(
17+
"aerospike"
1518
"amqp10"
1619
"amqplib"
20+
"apollo"
1721
"avsc"
1822
"aws_sdk"
19-
"bluebird"
20-
"couchbase"
21-
"cucumber"
23+
"axios"
24+
"azure_functions"
25+
"azure_service_bus"
2226
"bunyan"
2327
"cassandra_driver"
28+
"child_process"
2429
"confluentinc_kafka_javascript"
2530
"connect"
31+
"couchbase"
32+
"cucumber"
33+
"cypress"
2634
"dns"
2735
"elasticsearch"
2836
"express"
2937
"fastify"
3038
"fetch"
3139
"generic_pool"
3240
"google_cloud_pubsub"
41+
"google_cloud_vertexai"
3342
"graphql"
3443
"grpc"
3544
"hapi"
45+
"hono"
3646
"http"
3747
"http2"
3848
"ioredis"
@@ -41,38 +51,41 @@ declare -a plugins=(
4151
"kafkajs"
4252
"knex"
4353
"koa"
54+
"langchain"
4455
"ldapjs"
4556
"mariadb"
57+
"memcached"
4658
"microgateway_core"
4759
"mocha"
4860
"mongodb_core"
61+
"mongoose"
4962
"mysql"
5063
"mysql2"
5164
"net"
5265
"next"
53-
"opensearch"
5466
"openai"
67+
"opensearch"
5568
"oracledb"
56-
"pino"
5769
"pg"
70+
"pino"
71+
"playwright"
5872
"prisma"
59-
"promise"
60-
"promise_js"
6173
"protobufjs"
62-
"q"
6374
"redis"
6475
"restify"
76+
"rhea"
6577
"router"
78+
"selenium"
79+
"sharedb"
6680
"tedious"
6781
"undici"
68-
"when"
82+
"vitest"
6983
"winston"
70-
"ws"
7184
)
7285

7386
for i in "${plugins[@]}"
7487
do
75-
echo "<meta http-equiv=\"refresh\" content=\"0; URL=./export_.plugins.$i.html\" />" > out/interfaces/plugins.$i.html
88+
echo "<meta http-equiv=\"refresh\" content=\"0; URL=./plugins.$i.html\" />" > out/interfaces/export_.plugins.$i.html
7689
done
7790

7891
echo "done."

0 commit comments

Comments
 (0)