Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidVollmers committed May 5, 2024
1 parent f29f4fd commit 4e7c446
Show file tree
Hide file tree
Showing 9 changed files with 95 additions and 45 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Packages](../../README.md) / [Doki.Output.Abstractions](../README.md) / [Doki.Output](README.md) /

# DefaultOutputOptions<T> Class
# OutputOptions<T> Class

## Definition

Expand All @@ -12,15 +12,15 @@ Package: [Doki.Output.Abstractions](https://www.nuget.org/packages/Doki.Output.A

---

**Default output options.**

```csharp
public sealed record DefaultOutputOptions<T> : IOutputOptions<T>
public record OutputOptions<T>
```

Inheritance: [System.Object](https://learn.microsoft.com/en-us/dotnet/api/System.Object) → DefaultOutputOptions&lt;T&gt;
Inheritance: [System.Object](https://learn.microsoft.com/en-us/dotnet/api/System.Object) → OutputOptions&lt;T&gt;

Derived: [ClassLibraryOutputOptions](../../Doki.Output.ClassLibrary/Doki.Output.ClassLibrary/Doki.Output.ClassLibrary.ClassLibraryOutputOptions.md)

Implements: [IOutputOptions&lt;T&gt;](Doki.Output.IOutputOptions{__0}.md), [IEquatable&lt;Doki.Output.DefaultOutputOptions&lt;T&gt;&gt;](https://learn.microsoft.com/en-us/dotnet/api/IEquatable&lt;Doki.Output.DefaultOutputOptions&lt;T&gt;&gt;)
Implements: [IEquatable&lt;Doki.Output.OutputOptions&lt;T&gt;&gt;](https://learn.microsoft.com/en-us/dotnet/api/IEquatable&lt;Doki.Output.OutputOptions&lt;T&gt;&gt;)
## Type Parameters

Expand All @@ -31,13 +31,15 @@ Implements: [IOutputOptions&lt;T&gt;](Doki.Output.IOutputOptions{__0}.md), [IEqu

| |Summary|
|---|---|
|DefaultOutputOptions()||
|OutputOptions(Doki.Output.OutputOptions&lt;T&gt;)||
|OutputOptions()||


## Properties

| |Summary|
|---|---|
|EqualityContract||
|OutputDirectory||


Expand All @@ -46,8 +48,9 @@ Implements: [IOutputOptions&lt;T&gt;](Doki.Output.IOutputOptions{__0}.md), [IEqu
| |Summary|
|---|---|
|ToString()||
|PrintMembers(System.Text.StringBuilder)||
|GetHashCode()||
|Equals(System.Object)||
|Equals(Doki.Output.DefaultOutputOptions&lt;T&gt;)||
|Equals(Doki.Output.OutputOptions&lt;T&gt;)||


3 changes: 1 addition & 2 deletions docs/api/Doki.Output.Abstractions/Doki.Output/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

## Types

- [DefaultOutputOptions&lt;T&gt;](Doki.Output.DefaultOutputOptions_1.md)
- [IOutput](Doki.Output.IOutput.md)
- [IOutputOptions&lt;T&gt;](Doki.Output.IOutputOptions_1.md)
- [OutputOptions&lt;T&gt;](Doki.Output.OutputOptions_1.md)


Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[Packages](../../README.md) / [Doki.Output.ClassLibrary](../README.md) / [Doki.Output.ClassLibrary](README.md) /

# ClassLibraryOutput Class

## Definition

Namespace: [Doki.Output.ClassLibrary](README.md)

Assembly: [Doki.Output.ClassLibrary.dll](../README.md)

Package: [Doki.Output.ClassLibrary](https://www.nuget.org/packages/Doki.Output.ClassLibrary)

---

```csharp
public sealed class ClassLibraryOutput : Doki.Output.IOutput
```

Inheritance: [System.Object](https://learn.microsoft.com/en-us/dotnet/api/System.Object) → ClassLibraryOutput

Implements: [IOutput](../../Doki.Output.Abstractions/Doki.Output/Doki.Output.IOutput.md)

## Constructors

| |Summary|
|---|---|
|ClassLibraryOutput(Doki.Output.ClassLibrary.ClassLibraryOutputOptions)||


## Methods

| |Summary|
|---|---|
|WriteAsync(Doki.ContentList, System.Threading.CancellationToken)||
|WriteAsync(Doki.TypeDocumentation, System.Threading.CancellationToken)||


Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ Package: [Doki.Output.ClassLibrary](https://www.nuget.org/packages/Doki.Output.C
---

```csharp
public sealed record ClassLibraryOutputOptions : Doki.Output.IOutputOptions<Doki.Output.ClassLibrary.ClassLibraryOutput>
public sealed record ClassLibraryOutputOptions : Doki.Output.OutputOptions<Doki.Output.ClassLibrary.ClassLibraryOutput>
```

Inheritance: [System.Object](https://learn.microsoft.com/en-us/dotnet/api/System.Object) → ClassLibraryOutputOptions
Inheritance: [System.Object](https://learn.microsoft.com/en-us/dotnet/api/System.Object) → [OutputOptions](../../Doki.Output.Abstractions/Doki.Output/Doki.Output.OutputOptions_1.md)&lt;[ClassLibraryOutput](Doki.Output.ClassLibrary.ClassLibraryOutput.md)&gt; → ClassLibraryOutputOptions

Implements: [IOutputOptions&lt;ClassLibraryOutput&gt;](../../Doki.Output.Abstractions/Doki.Output/Doki.Output.IOutputOptions{Doki.Output.ClassLibrary.ClassLibraryOutput}.md), [System.IEquatable&lt;Doki.Output.ClassLibrary.ClassLibraryOutputOptions&gt;](https://learn.microsoft.com/en-us/dotnet/api/System.IEquatable&lt;Doki.Output.ClassLibrary.ClassLibraryOutputOptions&gt;)
Implements: [System.IEquatable&lt;Doki.Output.ClassLibrary.ClassLibraryOutputOptions&gt;](https://learn.microsoft.com/en-us/dotnet/api/System.IEquatable&lt;Doki.Output.ClassLibrary.ClassLibraryOutputOptions&gt;)
## Constructors

Expand All @@ -31,20 +31,22 @@ Implements: [IOutputOptions&lt;ClassLibraryOutput&gt;](../../Doki.Output.Abstrac

| |Summary|
|---|---|
|EqualityContract||
|Namespace||
|ProjectName||
|TargetFramework||
|TargetFrameworks||
|OutputDirectory||


## Methods

| |Summary|
|---|---|
|ToString()||
|PrintMembers(System.Text.StringBuilder)||
|GetHashCode()||
|Equals(System.Object)||
|Equals(Doki.Output.OutputOptions&lt;Doki.Output.ClassLibrary.ClassLibraryOutput&gt;)||
|Equals(Doki.Output.ClassLibrary.ClassLibraryOutputOptions)||


Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Types

- [ClassLibraryOutput](Doki.Output.ClassLibrary.ClassLibraryOutput.md)
- [ClassLibraryOutputExtensions](Doki.Output.ClassLibrary.ClassLibraryOutputExtensions.md)
- [ClassLibraryOutputOptions](Doki.Output.ClassLibrary.ClassLibraryOutputOptions.md)

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[Packages](../../README.md) / [Doki.Output.Markdown](../README.md) / [Doki.Output.Markdown](README.md) /

# MarkdownOutput Class

## Definition

Namespace: [Doki.Output.Markdown](README.md)

Assembly: [Doki.Output.Markdown.dll](../README.md)

Package: [Doki.Output.Markdown](https://www.nuget.org/packages/Doki.Output.Markdown)

---

```csharp
public sealed class MarkdownOutput : Doki.Output.IOutput
```

Inheritance: [System.Object](https://learn.microsoft.com/en-us/dotnet/api/System.Object) → MarkdownOutput

Implements: [IOutput](../../Doki.Output.Abstractions/Doki.Output/Doki.Output.IOutput.md)

## Constructors

| |Summary|
|---|---|
|MarkdownOutput(Doki.Output.OutputOptions&lt;Doki.Output.Markdown.MarkdownOutput&gt;)||


## Methods

| |Summary|
|---|---|
|WriteAsync(Doki.ContentList, System.Threading.CancellationToken)||
|WriteAsync(Doki.TypeDocumentation, System.Threading.CancellationToken)||


Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Types

- [MarkdownOutput](Doki.Output.Markdown.MarkdownOutput.md)
- [MarkdownOutputExtensions](Doki.Output.Markdown.MarkdownOutputExtensions.md)


2 changes: 1 addition & 1 deletion src/Doki.Output.Extensions/OutputExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static IServiceCollection AddOutputOptions<TOutput, TOptions>(this IServi
ArgumentNullException.ThrowIfNull(services);
ArgumentNullException.ThrowIfNull(outputType);

services.AddSingleton<OutputOptions<TOutput>>(provider =>
services.AddSingleton<TOptions>(provider =>
{
var optionsProvider = provider.GetService<IOutputOptionsProvider>();
var options = optionsProvider?.GetOptions<TOutput, TOptions>(outputType);
Expand Down

0 comments on commit 4e7c446

Please sign in to comment.