Commit 2214b4d 1 parent 2bc4356 commit 2214b4d Copy full SHA for 2214b4d
File tree 4 files changed +7
-20
lines changed
4 files changed +7
-20
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
24
24
- Fix [ RCS1241] ( https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1241 ) ([ #1197 ] ( https://github.com/JosefPihrt/Roslynator/pull/1197 ) ).
25
25
- Fix [ RCS1250] ( https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1250 ) ([ #1205 ] ( https://github.com/JosefPihrt/Roslynator/pull/1205 ) ).
26
26
- [ CLI] Fix globbing ([ #1215 ] ( https://github.com/JosefPihrt/Roslynator/pull/1215 ) ).
27
+ - [ CLI] Fix generation of root file ([ #1221 ] ( https://github.com/JosefPihrt/Roslynator/pull/1221 ) ).
27
28
28
29
## [ 4.5.0] - 2023-08-27
29
30
Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ DocumentationWriter CreateDocumentationWriter(DocumentationContext context)
230
230
231
231
WriteLine ( $ "Generate documentation to '{ Options . Output } '", Verbosity . Minimal ) ;
232
232
233
- IEnumerable < DocumentationGeneratorResult > results = generator . Generate ( heading : Options . Heading , cancellationToken ) ;
233
+ IEnumerable < DocumentationGeneratorResult > results = generator . Generate ( cancellationToken ) ;
234
234
235
235
if ( DocumentationHost == DocumentationHost . Sphinx )
236
236
{
@@ -283,6 +283,8 @@ private void GenerateRootFile(DocumentationGenerator generator)
283
283
File . WriteAllText ( rootFilePath , result . Content , _defaultEncoding ) ;
284
284
285
285
WriteLine ( $ "Documentation root successfully generated to '{ rootFilePath } '.", Verbosity . Minimal ) ;
286
+
287
+ generator . Options . RootDirectoryUrl = null ;
286
288
}
287
289
288
290
private static void AddTableOfContents ( IEnumerable < DocumentationGeneratorResult > results )
Original file line number Diff line number Diff line change @@ -151,20 +151,12 @@ private DocumentationWriter CreateWriter(ISymbol currentSymbol = null)
151
151
return writer ;
152
152
}
153
153
154
- public IEnumerable < DocumentationGeneratorResult > Generate ( string heading = null , CancellationToken cancellationToken = default )
154
+ public IEnumerable < DocumentationGeneratorResult > Generate ( CancellationToken cancellationToken = default )
155
155
{
156
156
cancellationToken . ThrowIfCancellationRequested ( ) ;
157
157
158
158
DocumentationDepth depth = Options . Depth ;
159
159
160
- using ( DocumentationWriter writer = CreateWriter ( ) )
161
- {
162
- DocumentationGeneratorResult result = GenerateRoot ( writer , heading ) ;
163
-
164
- if ( result . Content is not null )
165
- yield return result ;
166
- }
167
-
168
160
if ( depth <= DocumentationDepth . Namespace )
169
161
{
170
162
IEnumerable < INamedTypeSymbol > typeSymbols = DocumentationModel . Types . Where ( f => ! Options . ShouldBeIgnored ( f ) ) ;
Original file line number Diff line number Diff line change @@ -11,13 +11,5 @@ $rootDirectoryUrl="build/ref"
11
11
-- heading " Roslynator .NET API Reference" `
12
12
-- group-by - common- namespace `
13
13
-- ignored- common- parts content `
14
- -- ignored- root- parts all `
15
- -- max- derived- types 10
16
-
17
- & $roslynatorExe generate- doc- root generate_ref_docs.sln `
18
- -- properties Configuration= Release `
19
- - o " build/ref.md" `
20
- -- host docusaurus `
21
- -- heading " Roslynator .NET API Reference" `
22
- -- ignored- parts content `
23
- -- root- directory- url " ref"
14
+ -- max- derived- types 10 `
15
+ -- root- file- path " build/ref.md"
You can’t perform that action at this time.
0 commit comments