Skip to content

Commit 6450758

Browse files
authored
fix(cli): make cdk docs open the new API reference (#2633)
Point `cdk docs` to the new URL for docs.
1 parent f901313 commit 6450758

File tree

1 file changed

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

1 file changed

+1
-2
lines changed

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ export function handler(args: yargs.Arguments) {
2626
}
2727

2828
export async function realHandler(options: CommandOptions): Promise<number> {
29-
const docVersion = require('../../package.json').version;
30-
const url = `https://awslabs.github.io/aws-cdk/versions/${docVersion}/`;
29+
const url = `https://docs.aws.amazon.com/cdk/api/latest/`;
3130
print(colors.green(url));
3231
const browserCommand = (options.args.browser as string).replace(/%u/g, url);
3332
debug(`Opening documentation ${colors.green(browserCommand)}`);

0 commit comments

Comments
 (0)