-
Notifications
You must be signed in to change notification settings - Fork 309
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix broken plugin links * redirect old URLs --------- Co-authored-by: Thomas Hunter II <tlhunter@datadog.com>
- Loading branch information
1 parent
06b5aca
commit 58a353d
Showing
3 changed files
with
123 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Previously, URLs to plugin pages looked like this: | ||
# interfaces/plugins.amqp10.html | ||
# | ||
# Now, with an updated typedoc and updated types, they look like this: | ||
# interfaces/export_.plugins.connect.html | ||
# | ||
# This script automatically generates basic HTML files to redirect users who | ||
# visit the old URLs to the new URL. | ||
|
||
echo "writing redirects..." | ||
|
||
declare -a plugins=( | ||
"amqp10" | ||
"amqplib" | ||
"aws_sdk" | ||
"bluebird" | ||
"couchbase" | ||
"cucumber" | ||
"bunyan" | ||
"cassandra_driver" | ||
"connect" | ||
"dns" | ||
"elasticsearch" | ||
"express" | ||
"fastify" | ||
"fetch" | ||
"generic_pool" | ||
"google_cloud_pubsub" | ||
"graphql" | ||
"grpc" | ||
"hapi" | ||
"http" | ||
"http2" | ||
"ioredis" | ||
"jest" | ||
"kafkajs" | ||
"knex" | ||
"koa" | ||
"ldapjs" | ||
"mariadb" | ||
"microgateway_core" | ||
"mocha" | ||
"mongodb_core" | ||
"mysql" | ||
"mysql2" | ||
"net" | ||
"next" | ||
"opensearch" | ||
"openai" | ||
"oracledb" | ||
"paperplane" | ||
"pino" | ||
"pg" | ||
"promise" | ||
"promise_js" | ||
"q" | ||
"redis" | ||
"restify" | ||
"router" | ||
"tedious" | ||
"when" | ||
"winston" | ||
) | ||
|
||
for i in "${plugins[@]}" | ||
do | ||
echo "<meta http-equiv=\"refresh\" content=\"0; URL=./export_.plugins.$i.html\" />" > out/interfaces/plugins.$i.html | ||
done | ||
|
||
echo "done." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters