File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed
packages/angular/cli/commands Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,11 @@ export class DocCommand extends Command<DocCommandSchema> {
23
23
let domain = 'angular.io' ;
24
24
25
25
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
+ }
27
31
}
28
32
29
33
let searchUrl = `https://${ domain } /api?query=${ options . keyword } ` ;
Original file line number Diff line number Diff line change 28
28
},
29
29
"version" : {
30
30
"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
+ ],
32
43
"description" : " Contains the version of Angular to use for the documentation."
33
44
}
34
45
},
You can’t perform that action at this time.
0 commit comments