Skip to content

Commit

Permalink
Merge pull request #132 from pyrocumulus/fix-nuget-readme
Browse files Browse the repository at this point in the history
Fix README formatting for NuGet compatibility
  • Loading branch information
pyrocumulus authored Jul 26, 2022
2 parents 776a914 + 16758ba commit 732a5f0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## Unreleased

### Fixed

- Updated all links to official API documentation [#133](https://github.com/pyrocumulus/pvoutput.net/pull/133)

## [0.11.1] - 2022-07-24

### Fixed
Expand Down
20 changes: 6 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
![GitHub last commit (master)](https://img.shields.io/github/last-commit/pyrocumulus/PVOutput.Net/master?label=last%20commit%20%28master%29)
[![NuGet Version](https://img.shields.io/nuget/v/PVOutput.Net.svg?logo=nuget)](https://www.nuget.org/packages/PVOutput.Net/)
[![NuGet Downloads](https://img.shields.io/nuget/dt/PVOutput.Net.svg?logo=nuget)](https://www.nuget.org/packages/PVOutput.Net/)
[![fuget](https://www.fuget.org/packages/PVOutput.Net/badge.svg)](https://www.fuget.org/packages/PVOutput.Net)
[![.NET Core](https://img.shields.io/github/workflow/status/pyrocumulus/PVOutput.Net/.NET%20Core/develop)](https://github.com/pyrocumulus/pvoutput.net/actions?query=workflow%3A%22.NET+Core%22)
[![Code coverage](https://img.shields.io/codecov/c/github/pyrocumulus/PVOutput.Net/develop)](https://codecov.io/gh/pyrocumulus/pvoutput.net)

Expand All @@ -31,8 +30,9 @@ See [master](https://github.com/pyrocumulus/pvoutput.net/tree/master) for the so

## Basic usage

<details>
<summary>Getting data out of PVOutput.org</summary>
This section describes examples of functionality that the library provides.

### Getting data out of PVOutput.org

```csharp
var client = new PVOutputClient(apiKey: "myPvOutputKey", ownedSystemId: 1);
Expand All @@ -44,29 +44,23 @@ Console.WriteLine($"Output for date {output.OutputDate.ToShortDateString()}, {ou

```

</details>

<details>
<summary>Adding data to a system in PVOutput.org</summary>
### Adding data to a system in PVOutput.org

```csharp
var client = new PVOutputClient(apiKey: "myPvOutputKey", ownedSystemId: 1);
var builder = new StatusPostBuilder<IStatusPost>();

// Build the status
var status = builder.SetTimeStamp(DateTime.Now)
.SetGeneration(200, null)
.SetGeneration(200)
.Build();

// Push the status back to PVOutput
var response = await client.Status.AddStatusAsync(status);

```

</details>

<details>
<summary>Using the client in an ASP.Net Core application</summary>
### Using the client in an ASP.Net Core application

```csharp
public void ConfigureServices(IServiceCollection services)
Expand All @@ -79,8 +73,6 @@ var response = await client.Status.AddStatusAsync(status);
}
```

</details>

For more information on usage, please see the [documentation](https://pyrocumulus.github.io/pvoutput.net/).

## API Coverage
Expand Down
2 changes: 1 addition & 1 deletion docfx/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ var builder = new StatusPostBuilder<IStatusPost>();

// Build the status
var status = builder.SetTimeStamp(DateTime.Now)
.SetGeneration(200, null)
.SetGeneration(200)
.Build();

// Push the status back to PVOutput
Expand Down

0 comments on commit 732a5f0

Please sign in to comment.