Skip to content

Commit f20adb0

Browse files
committed
DocFx Project (#2)
1 parent 1b0841a commit f20adb0

File tree

10 files changed

+133
-1
lines changed

10 files changed

+133
-1
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,11 @@ DocProject/Help/*.hhp
142142
DocProject/Help/Html2
143143
DocProject/Help/html
144144

145+
# DocFX generated stuff
146+
DocFx.Net.Http.WebPush/log.txt
147+
DocFx.Net.Http.WebPush/api/
148+
DocFx.Net.Http.WebPush/wwwroot/
149+
145150
# Click-Once directory
146151
publish/
147152

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
2+
<PropertyGroup>
3+
<TargetFramework>netcoreapp2.0</TargetFramework>
4+
</PropertyGroup>
5+
<ItemGroup>
6+
<None Remove="log.txt" />
7+
</ItemGroup>
8+
<ItemGroup>
9+
<Folder Include="articles\" />
10+
<Folder Include="wwwroot\" />
11+
</ItemGroup>
12+
<ItemGroup>
13+
<PackageReference Include="docfx.console" Version="2.30.0" />
14+
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.5" />
15+
</ItemGroup>
16+
</Project>

DocFx.Net.Http.WebPush/Program.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using Microsoft.AspNetCore;
2+
using Microsoft.AspNetCore.Hosting;
3+
4+
namespace DocFx.Net.Http.WebPush
5+
{
6+
public class Program
7+
{
8+
public static void Main(string[] args) => WebHost.CreateDefaultBuilder(args).UseStartup<Startup>().Build().Run();
9+
}
10+
}

DocFx.Net.Http.WebPush/Startup.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using Microsoft.AspNetCore.Builder;
2+
using Microsoft.AspNetCore.Hosting;
3+
using Microsoft.Extensions.DependencyInjection;
4+
5+
namespace DocFx.Net.Http.WebPush
6+
{
7+
public class Startup
8+
{
9+
public void ConfigureServices(IServiceCollection services)
10+
{ }
11+
12+
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
13+
{
14+
app.UseDefaultFiles()
15+
.UseStaticFiles();
16+
}
17+
}
18+
}

DocFx.Net.Http.WebPush/docfx.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"metadata": [
3+
{
4+
"src": [
5+
{
6+
"files": [
7+
"Lib.Net.Http.WebPush/Lib.Net.Http.WebPush.csproj"
8+
],
9+
"exclude": [ "**/bin/**", "**/obj/**" ],
10+
"src": ".."
11+
}
12+
],
13+
"dest": "api",
14+
"properties": {
15+
"TargetFramework": "netstandard1.6"
16+
}
17+
}
18+
],
19+
"build": {
20+
"content": [
21+
{
22+
"files": [
23+
"api/*.yml",
24+
"toc.md",
25+
"index.md"
26+
]
27+
}
28+
],
29+
"resource": [
30+
{
31+
"files": [
32+
"resources/svg/logo.svg",
33+
"resources/ico/favicon.ico"
34+
]
35+
}
36+
],
37+
"dest": "wwwroot",
38+
"globalMetadata": {
39+
"_appTitle": "Lib.Net.Http.WebPush",
40+
"_appFooter": "Copyright © 2018 Tomasz Pęczek",
41+
"_appLogoPath": "resources/svg/logo.svg",
42+
"_appFaviconPath": "resources/ico/favicon.ico",
43+
"_disableBreadcrumb": true,
44+
"_disableAffix": true,
45+
"_disableContribution": true
46+
}
47+
}
48+
}

DocFx.Net.Http.WebPush/index.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Lib.Net.Http.WebPush
2+
3+
Lib.Net.Http.WebPush is a library which provides a [Web Push Protocol](https://tools.ietf.org/html/rfc8030) based client for Push Service. It provides support for [Voluntary Application Server Identification (VAPID) for Web Push](https://tools.ietf.org/html/rfc8292) and [Message Encryption for Web Push](https://tools.ietf.org/html/rfc8291).
4+
5+
## Installation
6+
7+
You can install [Lib.Net.Http.WebPush](https://www.nuget.org/packages/Lib.Net.Http.WebPush) from NuGet.
8+
9+
```
10+
PM> Install-Package Lib.Net.Http.WebPush
11+
```
12+
13+
## Demos
14+
15+
There is a demo project available [here](https://github.com/tpeczek/Demo.AspNetCore.PushNotifications).
16+
17+
## Donating
18+
19+
My blog and open source projects are result of my passion for software development, but they require a fair amount of my personal time. If you got value from any of the content I create, then I would appreciate your support by [buying me a coffee](https://www.buymeacoffee.com/tpeczek).
20+
21+
<a href="https://www.buymeacoffee.com/tpeczek"><img src="https://www.buymeacoffee.com/assets/img/custom_images/black_img.png" style="height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;" target="_blank"></a>
198 Bytes
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Loading

DocFx.Net.Http.WebPush/toc.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# [Introduction](index.md)
2+
3+
# [API Reference](api/Lib.Net.Http.WebPush.html)

Lib.Net.Http.WebPush.sln

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 15
44
VisualStudioVersion = 15.0.27130.2010
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lib.Net.Http.WebPush", "Lib.Net.Http.WebPush\Lib.Net.Http.WebPush.csproj", "{79FDCAAA-6129-4FBB-B94E-7F7BE9A07C7C}"
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Lib.Net.Http.WebPush", "Lib.Net.Http.WebPush\Lib.Net.Http.WebPush.csproj", "{79FDCAAA-6129-4FBB-B94E-7F7BE9A07C7C}"
7+
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DocFx.Net.Http.WebPush", "DocFx.Net.Http.WebPush\DocFx.Net.Http.WebPush.csproj", "{91C4FA65-7104-494C-9ED8-4B886BC2F7CD}"
79
EndProject
810
Global
911
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -15,6 +17,10 @@ Global
1517
{79FDCAAA-6129-4FBB-B94E-7F7BE9A07C7C}.Debug|Any CPU.Build.0 = Debug|Any CPU
1618
{79FDCAAA-6129-4FBB-B94E-7F7BE9A07C7C}.Release|Any CPU.ActiveCfg = Release|Any CPU
1719
{79FDCAAA-6129-4FBB-B94E-7F7BE9A07C7C}.Release|Any CPU.Build.0 = Release|Any CPU
20+
{91C4FA65-7104-494C-9ED8-4B886BC2F7CD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21+
{91C4FA65-7104-494C-9ED8-4B886BC2F7CD}.Debug|Any CPU.Build.0 = Debug|Any CPU
22+
{91C4FA65-7104-494C-9ED8-4B886BC2F7CD}.Release|Any CPU.ActiveCfg = Release|Any CPU
23+
{91C4FA65-7104-494C-9ED8-4B886BC2F7CD}.Release|Any CPU.Build.0 = Release|Any CPU
1824
EndGlobalSection
1925
GlobalSection(SolutionProperties) = preSolution
2026
HideSolutionNode = FALSE

0 commit comments

Comments
 (0)