Skip to content

Commit

Permalink
fix(docs): fix redirect loop (#4535)
Browse files Browse the repository at this point in the history
* fix(docs): force lowercase urls to match TypeDoc 0.19.x

* fix(docs): redirect loop
  • Loading branch information
MYoung25 authored Mar 16, 2023
1 parent 0ff20eb commit 1b7b0d1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 19 deletions.
8 changes: 2 additions & 6 deletions clients/client-guardduty/typedoc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{
"extends": [
"../../typedoc.client.json"
],
"entryPoints": [
"src/index.ts"
],
"extends": ["../../typedoc.client.json"],
"entryPoints": ["src/index.ts"],
"out": "docs",
"readme": "README.md"
}
8 changes: 2 additions & 6 deletions clients/client-resource-explorer-2/typedoc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{
"extends": [
"../../typedoc.client.json"
],
"entryPoints": [
"src/index.ts"
],
"extends": ["../../typedoc.client.json"],
"entryPoints": ["src/index.ts"],
"out": "docs",
"readme": "README.md"
}
8 changes: 2 additions & 6 deletions clients/client-sagemaker-runtime/typedoc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{
"extends": [
"../../typedoc.client.json"
],
"entryPoints": [
"src/index.ts"
],
"extends": ["../../typedoc.client.json"],
"entryPoints": ["src/index.ts"],
"out": "docs",
"readme": "README.md"
}
2 changes: 1 addition & 1 deletion packages/core-theme-documentation-generator/src/theme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class SdkThemeContext extends DefaultThemeRenderContext {
const script = `
// REDIRECT BROKEN CLIENT INDEX PAGES
(() => {
if (window.location.href.includes('clients/client') && /clients\\\/client-\\\w+\\\//.test(window.location.href) === false) {
if (window.location.href.includes('clients/client') && /clients\\\/client-[^\\\/]+\\\//.test(window.location.href) === false) {
window.location.href = window.location.href + '/'
}
})();
Expand Down

0 comments on commit 1b7b0d1

Please sign in to comment.