Skip to content

Commit cb1f2d4

Browse files
authored
chore(cli): update docs command to point to /v2 docs (#18072)
Currently running `cdk docs` points you to `/latest`. This PR updates the link to point to `/v2` since that is currently the latest version. fix #17963 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 60cf960 commit cb1f2d4

File tree

1 file changed

+1
-1
lines changed
  • packages/aws-cdk/lib/commands

1 file changed

+1
-1
lines changed

packages/aws-cdk/lib/commands/docs.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function handler(args: yargs.Arguments) {
3232
}
3333

3434
export async function realHandler(options: CommandOptions): Promise<number> {
35-
const url = 'https://docs.aws.amazon.com/cdk/api/latest/';
35+
const url = 'https://docs.aws.amazon.com/cdk/api/v2/';
3636
print(colors.green(url));
3737
const browserCommand = (options.args.browser as string).replace(/%u/g, url);
3838
debug(`Opening documentation ${colors.green(browserCommand)}`);

0 commit comments

Comments
 (0)