Skip to content

Commit

Permalink
@clydin @cexbrayat thanks for the feedbacks!
Browse files Browse the repository at this point in the history
With this commit I added the changes suggested.
Refs #12365
  • Loading branch information
LakhyariMs committed Jun 16, 2019
1 parent 7d6732c commit a5f52e6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
6 changes: 5 additions & 1 deletion packages/angular/cli/commands/doc-impl.ts
Expand Up @@ -23,7 +23,11 @@ export class DocCommand extends Command<DocCommandSchema> {
let domain = 'angular.io';

if (options.version) {
domain = `v${options.version}.angular.io`;
if (options.version == 'next') {
domain = 'next.angular.io';
} else {
domain = `v${options.version}.angular.io`;
}
}

let searchUrl = `https://${domain}/api?query=${options.keyword}`;
Expand Down
13 changes: 12 additions & 1 deletion packages/angular/cli/commands/doc.json
Expand Up @@ -28,7 +28,18 @@
},
"version" : {
"aliases": ["v"],
"type": "string",
"anyOf": [
{
"const" : 2
},
{
"type" : "integer",
"minimum": 4
},
{
"const": "next"
}
],
"description": "Contains the version of Angular to use for the documentation."
}
},
Expand Down

0 comments on commit a5f52e6

Please sign in to comment.