@@ -40,6 +40,7 @@ public async Task Serve(string? path = null, Cancel ctx = default)
40
40
/// <param name="pathPrefix"> Specifies the path prefix for urls </param>
41
41
/// <param name="force"> Force a full rebuild of the destination folder</param>
42
42
/// <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>
43
44
/// <param name="ctx"></param>
44
45
[ Command ( "generate" ) ]
45
46
[ ConsoleAppFilter < StopwatchFilter > ]
@@ -50,6 +51,7 @@ public async Task<int> Generate(
50
51
string ? pathPrefix = null ,
51
52
bool ? force = null ,
52
53
bool ? strict = null ,
54
+ bool ? allowIndexing = null ,
53
55
Cancel ctx = default
54
56
)
55
57
{
@@ -59,7 +61,8 @@ public async Task<int> Generate(
59
61
{
60
62
UrlPathPrefix = pathPrefix ,
61
63
Force = force ?? false ,
62
- Collector = new ConsoleDiagnosticsCollector ( logger , githubActionsService )
64
+ Collector = new ConsoleDiagnosticsCollector ( logger , githubActionsService ) ,
65
+ AllowIndexing = allowIndexing != null
63
66
} ;
64
67
var set = new DocumentationSet ( context ) ;
65
68
var generator = new DocumentationGenerator ( set , logger ) ;
@@ -81,6 +84,7 @@ public async Task<int> Generate(
81
84
/// <param name="pathPrefix"> Specifies the path prefix for urls </param>
82
85
/// <param name="force"> Force a full rebuild of the destination folder</param>
83
86
/// <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>
84
88
/// <param name="ctx"></param>
85
89
[ Command ( "" ) ]
86
90
[ ConsoleAppFilter < StopwatchFilter > ]
@@ -91,7 +95,8 @@ public async Task<int> GenerateDefault(
91
95
string ? pathPrefix = null ,
92
96
bool ? force = null ,
93
97
bool ? strict = null ,
98
+ bool ? allowIndexing = null ,
94
99
Cancel ctx = default
95
100
) =>
96
- await Generate ( path , output , pathPrefix , force , strict , ctx ) ;
101
+ await Generate ( path , output , pathPrefix , force , strict , allowIndexing , ctx ) ;
97
102
}
0 commit comments