Skip to content

Commit 12824d5

Browse files
authored
Migrate docs to Docusaurus (#922)
1 parent 41b4247 commit 12824d5

File tree

2,020 files changed

+3149
-68868
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,020 files changed

+3149
-68868
lines changed

.editorconfig

+1
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ dotnet_diagnostic.IDE0074.severity = none
188188
dotnet_diagnostic.IDE0074WithoutSuggestion.severity = none
189189
dotnet_diagnostic.IDE0079.severity = none
190190
dotnet_diagnostic.IDE0090.severity = none
191+
dotnet_diagnostic.IDE0220.severity = none
191192
dotnet_diagnostic.IDE1005.severity = suggestion
192193
dotnet_diagnostic.IDE1006.severity = suggestion
193194

.github/workflows/build.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ jobs:
104104
- uses: actions/upload-artifact@v3
105105
with:
106106
name: nuget_packages
107-
path: src/${{ matrix.component.name }}.CodeFixes/bin/Release/*.nupkg
107+
path: src/${{ matrix.component.name }}.CodeFixes/bin/Release/*.*nupkg
108108

109109
build_vs_extension:
110110
if: github.ref_type != 'tag' || startsWith(github.ref_name, 'v')
@@ -200,7 +200,7 @@ jobs:
200200
- uses: actions/upload-artifact@v3
201201
with:
202202
name: nuget_packages
203-
path: src/CommandLine/bin/Release/*.nupkg
203+
path: src/CommandLine/bin/Release/*.*nupkg
204204

205205
build_framework_cli:
206206
if: github.ref_type != 'tag' || startsWith(github.ref_name, 'cli-v')
@@ -222,7 +222,7 @@ jobs:
222222
- uses: actions/upload-artifact@v3
223223
with:
224224
name: nuget_packages
225-
path: src/CommandLine/bin/Release/*.nupkg
225+
path: src/CommandLine/bin/Release/*.*nupkg
226226

227227
publish_nuget_packages:
228228
needs: [ build_core_and_testing, build_analyzers, build_core_cli, build_framework_cli ]

ChangeLog.md

+301-300
Large diffs are not rendered by default.

README.md

+42-75
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,63 @@
1-
# Roslynator <img align="left" width="48px" height="48px" src="http://pihrt.net/images/Roslynator.ico">
1+
# Roslynator <img align="left" width="48px" height="48px" src="http://pihrt.net/images/Roslynator.ico" />
22

3-
A collection of 500+ [analyzers](docs/analyzers/README.md), [refactorings](docs/refactorings/README.md) and [fixes](docs/cs/README.md) for C#, powered by [Roslyn](https://github.com/dotnet/roslyn).
3+
Roslynator is a set of code analysis tools for C#, powered by [Roslyn](https://github.com/dotnet/roslyn).
44

5-
### Features
5+
## Tools
66

7-
* [Extensions for Visual Studio](#extensions-for-visual-studio)
8-
* [NuGet Packages](#nuget-packages)
9-
* [Roslynator Client Libraries](#roslynator-client-libraries)
10-
* [Roslynator Command Line Tool](#roslynator-command-line-tool)
11-
* [Roslynator for VS Code](#extensions-for-vs-code)
12-
* [Release notes](ChangeLog.md)
13-
* Follow on [Twitter](https://twitter.com/roslynator)
7+
- IDE extensions for:
8+
- [Visual Studio](https://marketplace.visualstudio.com/items?itemName=josefpihrt.Roslynator2022)
9+
- [VS Code](https://marketplace.visualstudio.com/items?itemName=josefpihrt-vscode.roslynator)
10+
- [Open VSX](https://open-vsx.org/extension/josefpihrt-vscode/roslynator)
11+
- [NuGet packages](#nuget-packages) that contain collection of analyzers
12+
- [Roslynator.Analyzers](https://www.nuget.org/packages/Roslynator.Analyzers)
13+
- [Roslynator.CodeAnalysis.Analyzers](https://www.nuget.org/packages/Roslynator.CodeAnalysis.Analyzers)
14+
- [Roslynator.Formatting.Analyzers](https://www.nuget.org/packages/Roslynator.Formatting.Analyzers)
15+
- [Testing framework](testing-framework) that allows unit testing of analyzers, refactoring and code fixes
16+
- [.NET client libraries](ref) that extend Roslyn API
17+
- [Command line tool](#command-line-tool)
1418

15-
### Donation
16-
17-
* Although Roslynator products are free of charge, any [donation](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=BX85UA346VTN6) is welcome and supports further development.
18-
* [List of donations](Donations.md)
19+
## Documentation
1920

20-
## Extensions for Visual Studio
21+
- [Configuration](https://josefpihrt.github.io/docs/roslynator/configuration)
22+
- [Guides](https://josefpihrt.github.io/docs/roslynator/guides)
23+
- [Roslynator CLI](https://josefpihrt.github.io/docs/roslynator/cli)
24+
- [Roslynator Client Libraries](https://josefpihrt.github.io/docs/roslynator/ref)
2125

22-
| Extension | Comment |
23-
| --- | --- |
24-
| [Roslynator 2022](https://marketplace.visualstudio.com/items?itemName=josefpihrt.Roslynator2022) | contains analyzers, refactorings and fixes for C# compiler diagnostics. |
25-
| [Roslynator 2019](https://marketplace.visualstudio.com/items?itemName=josefpihrt.Roslynator2019) | contains analyzers, refactorings and fixes for C# compiler diagnostics. |
26+
## Contributions
2627

27-
## Extensions for VS Code
28+
Contributions are welcome! If you are interested please see:
29+
- documentation for [developers](https://josefpihrt.github.io/docs/roslynator/developers)
30+
- available [issues](https://github.com/JosefPihrt/Roslynator/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Aup-for-grabs)
2831

29-
| Extension | Comment |
30-
| --- | --- |
31-
| [Roslynator](https://marketplace.visualstudio.com/items?itemName=josefpihrt-vscode.roslynator) | contains analyzers, refactorings and fixes for C# compiler diagnostics. |
32+
TIP: Bugfixes or small improvements can be implemented right away. Larger task like adding new analyzer or refactoring should be discussed first.
3233

33-
## Extensions for VS Code Compatible Editors
34+
## Command Line Tool
3435

35-
| Extension | Comment |
36-
| --- | --- |
37-
| [Roslynator](https://open-vsx.org/extension/josefpihrt-vscode/roslynator) | contains analyzers, refactorings and fixes for C# compiler diagnostics. |
36+
Run following command to install Roslynator command line tool:
37+
```sh
38+
dotnet tool install -g roslynator.dotnet.cli
39+
```
3840

39-
## NuGet Packages
41+
See [documentation](https://josefpihrt.github.io/docs/roslynator/cli) for further information.
4042

41-
| Package | Version | Comment |
42-
| --- | --- | --- |
43-
| [Roslynator.Analyzers](https://www.nuget.org/packages/Roslynator.Analyzers) | [![NuGet](https://img.shields.io/nuget/v/Roslynator.Analyzers.svg)](https://www.nuget.org/packages/Roslynator.Analyzers) | common analyzers (RCS1xxx) ([list](http://pihrt.net/Roslynator/Analyzers?Query=RCS1)) |
44-
| [Roslynator.CodeAnalysis.Analyzers](https://www.nuget.org/packages/Roslynator.CodeAnalysis.Analyzers) | [![NuGet](https://img.shields.io/nuget/v/Roslynator.CodeAnalysis.Analyzers.svg)](https://www.nuget.org/packages/Roslynator.CodeAnalysis.Analyzers) | analyzers for Roslyn API (RCS9xxx) ([list](http://pihrt.net/Roslynator/Analyzers?Query=RCS9)) |
45-
| [Roslynator.Formatting.Analyzers](https://www.nuget.org/packages/Roslynator.Formatting.Analyzers) | [![NuGet](https://img.shields.io/nuget/v/Roslynator.Formatting.Analyzers.svg)](https://www.nuget.org/packages/Roslynator.Formatting.Analyzers) | formatting analyzers (RCS0xxx) ([list](http://pihrt.net/Roslynator/Analyzers?Query=RCS0)) |
43+
## Testing Framework
4644

47-
*Note: All analyzers in package Roslynator.Formatting.Analyzers are disabled by default.*
45+
- Roslynator Testing Framework can be used for unit testing of analyzers, refactorings and code fixes.
46+
- Framework is distributed as NuGet [package](https://www.nuget.org/packages/Roslynator.Testing.CSharp.Xunit). &ensp;[![NuGet](https://img.shields.io/nuget/v/Roslynator.Testing.CSharp.Xunit.svg)](https://www.nuget.org/packages/Roslynator.Testing.CSharp.Xunit)
47+
- Learn how to use the framework from actual usages in Roslynator repo:
48+
- Tests of analyzers are [here](https://github.com/JosefPihrt/Roslynator/tree/main/src/Tests/Analyzers.Tests), [here](https://github.com/JosefPihrt/Roslynator/tree/main/src/Tests/CodeAnalysis.Analyzers.Tests) and [here](https://github.com/JosefPihrt/Roslynator/tree/main/src/Tests/Formatting.Analyzers.Tests)
49+
- Tests of refactorings are [here](https://github.com/JosefPihrt/Roslynator/tree/main/src/Tests/Refactorings.Tests)
50+
- Tests of fixes of compiler diagnostics are [here](https://github.com/JosefPihrt/Roslynator/tree/main/src/Tests/CodeFixes.Tests)
4851

49-
## Roslynator Client Libraries
52+
## Client Libraries
5053

51-
* Roslynator client libraries are meant be used for development of your own analyzers/refactorings.
52-
* It does not contain any analyzers/refactorings itself.
53-
* See [reference](docs/api/README.md).
54+
- Roslynator client libraries are meant be used for development of your own analyzers/refactorings.
55+
- It does not contain any analyzers/refactorings itself.
56+
- See [reference](https://josefpihrt.github.io/docs/roslynator/ref).
5457

55-
| Package | Version | Built on top of |
58+
| Package | Version | Extends |
5659
| --- | --- | --- |
5760
| [Roslynator.Core](https://www.nuget.org/packages/Roslynator.Core) | [![NuGet](https://img.shields.io/nuget/v/Roslynator.Core.svg)](https://www.nuget.org/packages/Roslynator.Core) | [Microsoft.CodeAnalysis.Common](https://www.nuget.org/packages/Microsoft.CodeAnalysis.Common) |
5861
| [Roslynator.Workspaces.Core](https://www.nuget.org/packages/Roslynator.Workspaces.Core) | [![NuGet](https://img.shields.io/nuget/v/Roslynator.Workspaces.Core.svg)](https://www.nuget.org/packages/Roslynator.Workspaces.Core) | [Microsoft.CodeAnalysis.Workspaces.Common](https://www.nuget.org/packages/Microsoft.CodeAnalysis.Workspaces.Common) |
5962
| [Roslynator.CSharp](https://www.nuget.org/packages/Roslynator.CSharp) | [![NuGet](https://img.shields.io/nuget/v/Roslynator.CSharp.svg)](https://www.nuget.org/packages/Roslynator.CSharp) | [Microsoft.CodeAnalysis.CSharp](https://www.nuget.org/packages/Microsoft.CodeAnalysis.CSharp) |
6063
| [Roslynator.CSharp.Workspaces](https://www.nuget.org/packages/Roslynator.CSharp.Workspaces) | [![NuGet](https://img.shields.io/nuget/v/Roslynator.CSharp.Workspaces.svg)](https://www.nuget.org/packages/Roslynator.CSharp.Workspaces) | [Microsoft.CodeAnalysis.CSharp.Workspaces](https://www.nuget.org/packages/Microsoft.CodeAnalysis.CSharp.Workspaces) |
61-
62-
## Roslynator Command Line Tool &ensp;[![NuGet](https://img.shields.io/nuget/v/Roslynator.DotNet.Cli.svg)](https://www.nuget.org/packages/Roslynator.DotNet.Cli)
63-
64-
Run following command to install Roslynator command line tool:
65-
```
66-
dotnet tool install -g roslynator.dotnet.cli
67-
```
68-
69-
* [Documentation](docs/cli/README.md)
70-
* [Change log](src/CommandLine/ChangeLog.md)
71-
72-
## Roslynator Testing Framework
73-
74-
* Roslynator Testing Framework can be used for unit testing of analyzers, refactorings and code fixes.
75-
* Framework is distributed as NuGet [package](https://www.nuget.org/packages/Roslynator.Testing.CSharp.Xunit). &ensp;[![NuGet](https://img.shields.io/nuget/v/Roslynator.Testing.CSharp.Xunit.svg)](https://www.nuget.org/packages/Roslynator.Testing.CSharp.Xunit)
76-
* Learn how to use the framework from actual usages in Roslynator repo:
77-
* Tests of analyzers are [here](src/Tests/Analyzers.Tests), [here](src/Tests/CodeAnalysis.Analyzers.Tests) and [here](src/Tests/Formatting.Analyzers.Tests)
78-
* Tests of refactorings are [here](src/Tests/Refactorings.Tests)
79-
* Tests of fixes of compiler diagnostics are [here](src/Tests/CodeFixes.Tests)
80-
81-
## Documentation
82-
83-
* [How to Configure Roslynator](docs/Configuration.md)
84-
* [Analyzers vs. Refactorings](docs/AnalyzersVsRefactorings.md)
85-
* [How to Fix All Diagnostics in a Solution](docs/HowToFixAllDiagnostics.md)
86-
* [How to Generate API Documentation](docs/HowToGenerateDocumentation.md)
87-
88-
Would you like to improve Roslynator documentation? Please see [how to update documentation](docs/HowToUpdateDocumentation.md).
89-
90-
## Other Projects
91-
92-
* [Snippetica](https://github.com/JosefPihrt/Snippetica) - A collection of snippets for C++, C#, HTML, JSON, Markdown, VB, XAML and XML
93-
* [DotMarkdown](https://github.com/JosefPihrt/DotMarkdown) - Markdown framework for .NET
94-
* [LINQ to Regex](https://github.com/JosefPihrt/LinqToRegex) - A library that provides language integrated access to .NET regular expressions
95-
* [Snippet Manager](https://github.com/JosefPihrt/SnippetManager) - A library that enables to work with Visual Studio snippets
96-
* [Regexator](http://pihrt.net/Regexator) - A comprehensive development environment for .NET regular expressions

docs/AnalyzersVsRefactorings.md

-51
This file was deleted.

0 commit comments

Comments
 (0)