-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use typedoc-plugin-script-inject to add client side redirects
The previous docs had all the exports on a single page and we make use of #anchor links to link to the export.
- Loading branch information
Showing
5 changed files
with
81 additions
and
1 deletion.
There are no files selected for viewing
68 changes: 68 additions & 0 deletions
68
content/docs/reference/pkg/nodejs/pulumi/pulumi/redirects.js
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,68 @@ | ||
var pathname = location.pathname.replace(/\/$/, "") | ||
if (pathname == "/docs/reference/pkg/nodejs/pulumi/pulumi") { | ||
This comment has been minimized.
Sorry, something went wrong. |
||
var redirects = { | ||
"#ComponentResource": "/docs/reference/pkg/nodejs/pulumi/pulumi/classes/ComponentResource.html", | ||
"#getStack": "/docs/reference/pkg/nodejs/pulumi/pulumi/functions/getStack.html", | ||
"#isSecret": "/docs/reference/pkg/nodejs/pulumi/pulumi/functions/isSecret.html", | ||
"#ResourceTransformArgs": "/docs/reference/pkg/nodejs/pulumi/pulumi/interfaces/ResourceTransformArgs.html", | ||
"#ResourceTransformationResult": "/docs/reference/pkg/nodejs/pulumi/pulumi/interfaces/ResourceTransformationResult.html", | ||
"#version": "/docs/reference/pkg/nodejs/pulumi/pulumi/variables/version.html", | ||
"#ResourceError": "/docs/reference/pkg/nodejs/pulumi/pulumi/classes/ResourceError.html", | ||
"#concat": "/docs/reference/pkg/nodejs/pulumi/pulumi/functions/concat.html", | ||
"#output": "/docs/reference/pkg/nodejs/pulumi/pulumi/functions/output.html", | ||
"#allAliases": "/docs/reference/pkg/nodejs/pulumi/pulumi/functions/allAliases.html", | ||
"#NumberConfigOptions": "/docs/reference/pkg/nodejs/pulumi/pulumi/interfaces/NumberConfigOptions.html", | ||
"#jsonParse": "/docs/reference/pkg/nodejs/pulumi/pulumi/functions/jsonParse.html", | ||
"#interpolate": "/docs/reference/pkg/nodejs/pulumi/pulumi/functions/interpolate.html", | ||
"#unsecret": "/docs/reference/pkg/nodejs/pulumi/pulumi/functions/unsecret.html", | ||
"#ComponentResourceOptions": "/docs/reference/pkg/nodejs/pulumi/pulumi/interfaces/ComponentResourceOptions.html", | ||
"#StackReference": "/docs/reference/pkg/nodejs/pulumi/pulumi/classes/StackReference.html", | ||
"#OutputInstance": "/docs/reference/pkg/nodejs/pulumi/pulumi/interfaces/OutputInstance.html", | ||
"#Input": "/docs/reference/pkg/nodejs/pulumi/pulumi/types/Input.html", | ||
"#isUnknown": "/docs/reference/pkg/nodejs/pulumi/pulumi/functions/isUnknown.html", | ||
"#StackReferenceArgs": "/docs/reference/pkg/nodejs/pulumi/pulumi/interfaces/StackReferenceArgs.html", | ||
"#secret": "/docs/reference/pkg/nodejs/pulumi/pulumi/functions/secret.html", | ||
"#ResourceTransformResult": "/docs/reference/pkg/nodejs/pulumi/pulumi/interfaces/ResourceTransformResult.html", | ||
"#mergeOptions": "/docs/reference/pkg/nodejs/pulumi/pulumi/functions/mergeOptions.html", | ||
"#InvokeOptions": "/docs/reference/pkg/nodejs/pulumi/pulumi/interfaces/InvokeOptions.html", | ||
"#UnwrappedArray": "/docs/reference/pkg/nodejs/pulumi/pulumi/types/UnwrappedArray.html", | ||
"#rootStackResource": "/docs/reference/pkg/nodejs/pulumi/pulumi/variables/rootStackResource.html", | ||
"#DependencyProviderResource": "/docs/reference/pkg/nodejs/pulumi/pulumi/classes/DependencyProviderResource.html", | ||
"#Alias": "/docs/reference/pkg/nodejs/pulumi/pulumi/interfaces/Alias.html", | ||
"#URN": "/docs/reference/pkg/nodejs/pulumi/pulumi/types/URN.html", | ||
"#Config": "/docs/reference/pkg/nodejs/pulumi/pulumi/classes/Config.html", | ||
"#CustomResource": "/docs/reference/pkg/nodejs/pulumi/pulumi/classes/CustomResource.html", | ||
"#Lifted": "/docs/reference/pkg/nodejs/pulumi/pulumi/types/Lifted.html", | ||
"#Output": "/docs/reference/pkg/nodejs/pulumi/pulumi/types/Output.html", | ||
"#ResourceOptions": "/docs/reference/pkg/nodejs/pulumi/pulumi/interfaces/ResourceOptions.html", | ||
"#StringConfigOptions": "/docs/reference/pkg/nodejs/pulumi/pulumi/interfaces/StringConfigOptions.html", | ||
"#getOrganization": "/docs/reference/pkg/nodejs/pulumi/pulumi/functions/getOrganization.html", | ||
"#DependencyResource": "/docs/reference/pkg/nodejs/pulumi/pulumi/classes/DependencyResource.html", | ||
"#createUrn": "/docs/reference/pkg/nodejs/pulumi/pulumi/functions/createUrn.html", | ||
"#UnwrappedObject": "/docs/reference/pkg/nodejs/pulumi/pulumi/types/UnwrappedObject.html", | ||
"#containsUnknowns": "/docs/reference/pkg/nodejs/pulumi/pulumi/functions/containsUnknowns.html", | ||
"#LiftedObject": "/docs/reference/pkg/nodejs/pulumi/pulumi/types/LiftedObject.html", | ||
"#ProviderResource": "/docs/reference/pkg/nodejs/pulumi/pulumi/classes/ProviderResource.html", | ||
"#CustomResourceOptions": "/docs/reference/pkg/nodejs/pulumi/pulumi/interfaces/CustomResourceOptions.html", | ||
"#Inputs": "/docs/reference/pkg/nodejs/pulumi/pulumi/types/Inputs.html", | ||
"#LiftedArray": "/docs/reference/pkg/nodejs/pulumi/pulumi/types/LiftedArray.html", | ||
"#ResourceTransformationArgs": "/docs/reference/pkg/nodejs/pulumi/pulumi/interfaces/ResourceTransformationArgs.html", | ||
"#Resource": "/docs/reference/pkg/nodejs/pulumi/pulumi/classes/Resource.html", | ||
"#CustomTimeouts": "/docs/reference/pkg/nodejs/pulumi/pulumi/interfaces/CustomTimeouts.html", | ||
"#jsonStringify": "/docs/reference/pkg/nodejs/pulumi/pulumi/functions/jsonStringify.html", | ||
"#ID": "/docs/reference/pkg/nodejs/pulumi/pulumi/types/ID.html", | ||
"#RunError": "/docs/reference/pkg/nodejs/pulumi/pulumi/classes/RunError.html", | ||
"#Unwrap": "/docs/reference/pkg/nodejs/pulumi/pulumi/types/Unwrap.html", | ||
"#ResourceTransformation": "/docs/reference/pkg/nodejs/pulumi/pulumi/types/ResourceTransformation.html", | ||
"#getProject": "/docs/reference/pkg/nodejs/pulumi/pulumi/functions/getProject.html", | ||
"#ResourceTransform": "/docs/reference/pkg/nodejs/pulumi/pulumi/types/ResourceTransform.html", | ||
"#UnwrapSimple": "/docs/reference/pkg/nodejs/pulumi/pulumi/types/UnwrapSimple.html", | ||
"#StackReferenceOutputDetails": "/docs/reference/pkg/nodejs/pulumi/pulumi/interfaces/StackReferenceOutputDetails.html", | ||
"#all": "/docs/reference/pkg/nodejs/pulumi/pulumi/functions/all.html", | ||
"#isGrpcError": "/docs/reference/pkg/nodejs/pulumi/pulumi/functions/isGrpcError.html", | ||
"#OutputConstructor": "/docs/reference/pkg/nodejs/pulumi/pulumi/interfaces/OutputConstructor.html", | ||
} | ||
if (redirects[location.hash]) { | ||
location.href = redirects[location.hash]; | ||
} | ||
} |
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
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,3 @@ | ||
{ | ||
"scriptSrc": "/docs/reference/pkg/nodejs/pulumi/pulumi/redirects.js" | ||
} |
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
Unfortunately the file gets included on all the pages, so we check here that we are on the pu/pu page before trying to redirect.