@@ -40,6 +40,7 @@ public async Task Serve(string? path = null, Cancel ctx = default)
4040 /// <param name="pathPrefix"> Specifies the path prefix for urls </param>
4141 /// <param name="force"> Force a full rebuild of the destination folder</param>
4242 /// <param name="strict"> Treat warnings as errors and fail the build on warnings</param>
43+ /// <param name="allowIndexing"> Allow indexing and following of html files</param>
4344 /// <param name="ctx"></param>
4445 [ Command ( "generate" ) ]
4546 [ ConsoleAppFilter < StopwatchFilter > ]
@@ -50,6 +51,7 @@ public async Task<int> Generate(
5051 string ? pathPrefix = null ,
5152 bool ? force = null ,
5253 bool ? strict = null ,
54+ bool ? allowIndexing = null ,
5355 Cancel ctx = default
5456 )
5557 {
@@ -59,7 +61,8 @@ public async Task<int> Generate(
5961 {
6062 UrlPathPrefix = pathPrefix ,
6163 Force = force ?? false ,
62- Collector = new ConsoleDiagnosticsCollector ( logger , githubActionsService )
64+ Collector = new ConsoleDiagnosticsCollector ( logger , githubActionsService ) ,
65+ AllowIndexing = allowIndexing != null
6366 } ;
6467 var set = new DocumentationSet ( context ) ;
6568 var generator = new DocumentationGenerator ( set , logger ) ;
@@ -81,6 +84,7 @@ public async Task<int> Generate(
8184 /// <param name="pathPrefix"> Specifies the path prefix for urls </param>
8285 /// <param name="force"> Force a full rebuild of the destination folder</param>
8386 /// <param name="strict"> Treat warnings as errors and fail the build on warnings</param>
87+ /// <param name="allowIndexing"> Allow indexing and following of html files</param>
8488 /// <param name="ctx"></param>
8589 [ Command ( "" ) ]
8690 [ ConsoleAppFilter < StopwatchFilter > ]
@@ -91,7 +95,8 @@ public async Task<int> GenerateDefault(
9195 string ? pathPrefix = null ,
9296 bool ? force = null ,
9397 bool ? strict = null ,
98+ bool ? allowIndexing = null ,
9499 Cancel ctx = default
95100 ) =>
96- await Generate ( path , output , pathPrefix , force , strict , ctx ) ;
101+ await Generate ( path , output , pathPrefix , force , strict , allowIndexing , ctx ) ;
97102}
0 commit comments