From 645075874285564b768078dc33fd5f2e4b269fe6 Mon Sep 17 00:00:00 2001 From: Rico Huijbers Date: Fri, 24 May 2019 17:29:04 +0200 Subject: [PATCH] fix(cli): make `cdk docs` open the new API reference (#2633) Point `cdk docs` to the new URL for docs. --- packages/aws-cdk/lib/commands/docs.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/aws-cdk/lib/commands/docs.ts b/packages/aws-cdk/lib/commands/docs.ts index 7a675eeae6832..6eab8f00133fd 100644 --- a/packages/aws-cdk/lib/commands/docs.ts +++ b/packages/aws-cdk/lib/commands/docs.ts @@ -26,8 +26,7 @@ export function handler(args: yargs.Arguments) { } export async function realHandler(options: CommandOptions): Promise { - 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)}`);