Skip to content

Commit 5af18f2

Browse files
Merge pull request #83 from Stravaig-Projects/#62-docs
#62 Create "Read the Docs" documentation
2 parents e4ccba5 + 5dbf0be commit 5af18f2

35 files changed

+1224
-200
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
55

66
docs/build/
7+
docs/_build/
78
docs/source/_build
89

910
# User-specific files

.readthedocs.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# .readthedocs.yml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
6+
version: 2
7+
8+
# Build documentation in the docs/ directory with Sphinx
9+
sphinx:
10+
configuration: docs/conf.py
11+
builder: html
12+
fail_on_warning: true
13+
14+
# Build documentation with MkDocs
15+
#mkdocs:
16+
# configuration: mkdocs.yml
17+
18+
# Optionally build your docs in additional formats such as PDF
19+
# formats:
20+
# - pdf
21+
22+
# Optionally set the version of Python and requirements required to build your docs
23+
# python:
24+
# version: 3.7
25+
# install:
26+
# - requirements: docs/requirements.txt

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
"nunit",
77
"nupkg",
88
"snupkg"
9-
]
9+
],
10+
"restructuredtext.confPath": "${workspaceFolder}\\docs"
1011
}

Example/.idea/.idea.Example/.idea/.gitignore

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/.idea/.idea.Example/.idea/indexLayout.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/.idea/.idea.Example/.idea/riderModule.iml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/.idea/.idea.Example/.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using Microsoft.AspNetCore.Mvc;
5+
6+
namespace Example.Controllers
7+
{
8+
[ApiController]
9+
[Route("[controller]")]
10+
public class WeatherForecastController : ControllerBase
11+
{
12+
private static readonly string[] Summaries = new[]
13+
{
14+
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
15+
};
16+
17+
[HttpGet]
18+
public IEnumerable<WeatherForecast> Get()
19+
{
20+
var rng = new Random();
21+
return Enumerable.Range(1, 5).Select(index => new WeatherForecast
22+
{
23+
Date = DateTime.Now.AddDays(index),
24+
TemperatureC = rng.Next(-20, 55),
25+
Summary = Summaries[rng.Next(Summaries.Length)]
26+
})
27+
.ToArray();
28+
}
29+
}
30+
}

Example/Example.csproj

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+
3+
<PropertyGroup>
4+
<TargetFramework>net5.0</TargetFramework>
5+
<UserSecretsId>5a1a71a3-bb52-41d2-8656-db4e35ab8e2a</UserSecretsId>
6+
</PropertyGroup>
7+
8+
<ItemGroup>
9+
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="5.0.1" NoWarn="NU1605" />
10+
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="5.0.1" NoWarn="NU1605" />
11+
<PackageReference Include="Seq.Extensions.Logging" Version="6.0.0" />
12+
<PackageReference Include="Stravaig.Extensions.Configuration.Diagnostics" Version="0.5.0-preview.153" />
13+
<PackageReference Include="Swashbuckle.AspNetCore" Version="5.6.3" />
14+
</ItemGroup>
15+
16+
</Project>

Example/Example.sln

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Example", "Example.csproj", "{A8BBC55D-0E1F-4444-830E-0366D8DCCD8A}"
4+
EndProject
5+
Global
6+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
7+
Debug|Any CPU = Debug|Any CPU
8+
Release|Any CPU = Release|Any CPU
9+
EndGlobalSection
10+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
11+
{A8BBC55D-0E1F-4444-830E-0366D8DCCD8A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
12+
{A8BBC55D-0E1F-4444-830E-0366D8DCCD8A}.Debug|Any CPU.Build.0 = Debug|Any CPU
13+
{A8BBC55D-0E1F-4444-830E-0366D8DCCD8A}.Release|Any CPU.ActiveCfg = Release|Any CPU
14+
{A8BBC55D-0E1F-4444-830E-0366D8DCCD8A}.Release|Any CPU.Build.0 = Release|Any CPU
15+
EndGlobalSection
16+
EndGlobal

0 commit comments

Comments
 (0)