Skip to content

Commit

Permalink
Merge pull request #19 from BoBoBaSs84/docs/missing-interface-documen…
Browse files Browse the repository at this point in the history
…tation

docs: missing interface documentation
  • Loading branch information
BoBoBaSs84 authored Oct 25, 2023
2 parents 374f073 + 5ac2606 commit c093b4c
Show file tree
Hide file tree
Showing 10 changed files with 104 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
dotnet-version: '6.0.x'

- name: Build and Test
if: github.event_name != 'push'
run: dotnet test BB84.Notifications.sln -c Release

- name: Self Build - Publish (main only)
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: DOCS

on:
push:
branches: [ main ]

jobs:
publish-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Dotnet Setup
uses: actions/setup-dotnet@v3

- name: DocFx Setup
run: dotnet tool update -g docfx

- name: Run DocFx
run: docfx docs/docfx.json

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_site
4 changes: 3 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<VersionMajor>1</VersionMajor>
<VersionMinor>2</VersionMinor>
<VersionPatch>0</VersionPatch>
<VersionPatch>1</VersionPatch>
<VersionPrefix>$(VersionMajor).$(VersionMinor).$(VersionPatch)</VersionPrefix>
<VersionSuffix Condition="$(Configuration.Equals('Debug'))">Development</VersionSuffix>
</PropertyGroup>
Expand Down Expand Up @@ -63,6 +63,8 @@

<ItemGroup Condition="!$(MSBuildProjectName.EndsWith('Tests'))">
<InternalsVisibleTo Include="$(AssemblyName)Tests" Key="00240000048000009400000006020000002400005253413100040000010001001d279f3822ca86e5157254452c9b0bda97bfeef3ed7964a8626318a1e46449adb0b62b7ca2f37b461ab2f28d0203344b11da76c5244331ff0a8629a258901534d0fb7d1cdfc6c048031874fced4f4c6a6d87991d4105e072adde2a965ccd440bbf8c3f90d6de6f8cfce47bd8908d9fdcdc08c617dc04616fc1dfcd290b4f4eec" />
<None Include="..\..\LICENSE" Pack="True" PackagePath="\" />
<None Include="..\..\README.md" Pack="True" PackagePath="\" />
</ItemGroup>

<ItemGroup Condition="$(MSBuildProjectName.EndsWith('Tests'))">
Expand Down
9 changes: 9 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
###############
# folder #
###############
/**/DROP/
/**/TEMP/
/**/packages/
/**/bin/
/**/obj/
_site
5 changes: 5 additions & 0 deletions docs/api/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
###############
# temp file #
###############
*.yml
.manifest
Empty file added docs/api/index.md
Empty file.
55 changes: 55 additions & 0 deletions docs/docfx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"metadata": [
{
"src": [
{
"files": ["**/*.csproj"],
"src": "../src"
}
],
"dest": "api",
"outputFormat": "mref",
"includePrivateMembers": false,
"disableGitFeatures": false,
"disableDefaultFilter": false,
"noRestore": false,
"namespaceLayout": "flattened",
"memberLayout": "samePage",
"enumSortOrder": "alphabetic",
"allowCompilationErrors": false
}
],
"build": {
"content": [
{
"files": [
"api/**.yml",
"api/index.md"
]
},
{
"files": [
"toc.yml",
"*.md"
]
}
],
"resource": [
{
"files": [
"images/**"
]
}
],
"output": "_site",
"globalMetadataFiles": [],
"fileMetadataFiles": [],
"template": [
"default",
"modern"
],
"postProcessors": [],
"keepFileLink": false,
"disableGitFeatures": false
}
}
Empty file added docs/index.md
Empty file.
3 changes: 3 additions & 0 deletions docs/toc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- name: Api Documentation
href: api/
homepage: api/index.md
9 changes: 1 addition & 8 deletions src/BB84.Notifications/BB84.Notifications.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
<Project Sdk="Microsoft.NET.Sdk">

<ItemGroup>
<None Include="..\..\LICENSE" Pack="True" PackagePath="\" />
<None Include="..\..\README.md" Pack="True" PackagePath="\" />
</ItemGroup>

</Project>
<Project Sdk="Microsoft.NET.Sdk"/>

0 comments on commit c093b4c

Please sign in to comment.