Skip to content

Commit

Permalink
fix(cli): make cdk docs open the new API reference (#2633)
Browse files Browse the repository at this point in the history
Point `cdk docs` to the new URL for docs.
  • Loading branch information
rix0rrr authored May 24, 2019
1 parent f901313 commit 6450758
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/aws-cdk/lib/commands/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ export function handler(args: yargs.Arguments) {
}

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

0 comments on commit 6450758

Please sign in to comment.