Skip to content

Commit a5f52e6

Browse files
committed
@clydin @cexbrayat thanks for the feedbacks!
With this commit I added the changes suggested. Refs #12365
1 parent 7d6732c commit a5f52e6

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

packages/angular/cli/commands/doc-impl.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ export class DocCommand extends Command<DocCommandSchema> {
2323
let domain = 'angular.io';
2424

2525
if (options.version) {
26-
domain = `v${options.version}.angular.io`;
26+
if (options.version == 'next') {
27+
domain = 'next.angular.io';
28+
} else {
29+
domain = `v${options.version}.angular.io`;
30+
}
2731
}
2832

2933
let searchUrl = `https://${domain}/api?query=${options.keyword}`;

packages/angular/cli/commands/doc.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,18 @@
2828
},
2929
"version" : {
3030
"aliases": ["v"],
31-
"type": "string",
31+
"anyOf": [
32+
{
33+
"const" : 2
34+
},
35+
{
36+
"type" : "integer",
37+
"minimum": 4
38+
},
39+
{
40+
"const": "next"
41+
}
42+
],
3243
"description": "Contains the version of Angular to use for the documentation."
3344
}
3445
},

0 commit comments

Comments
 (0)