Skip to content

Commit fd7206f

Browse files
committed
Add automatically generated documentation
1 parent 362b762 commit fd7206f

File tree

13 files changed

+165
-8
lines changed

13 files changed

+165
-8
lines changed

.github/workflows/docs.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Docs
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
workflow_dispatch:
7+
8+
env:
9+
DOTNET_VERSION: '8.0.x'
10+
11+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
12+
permissions:
13+
actions: read
14+
pages: write
15+
id-token: write
16+
17+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
18+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
19+
concurrency:
20+
group: pages
21+
cancel-in-progress: false
22+
23+
jobs:
24+
publish-docs:
25+
environment:
26+
name: github-pages
27+
url: ${{ steps.deployment.outputs.page_url }}
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v4
32+
- name: Dotnet Setup
33+
uses: actions/setup-dotnet@v4
34+
with:
35+
dotnet-version: ${{ env.DOTNET_VERSION }}
36+
37+
- run: dotnet tool update -g docfx
38+
- run: docfx docs/docfx.json
39+
40+
- name: Upload Artifact
41+
uses: actions/[email protected]
42+
with:
43+
path: docs/_site
44+
- name: Deploy to GitHub Pages
45+
id: deployment
46+
uses: actions/deploy-pages@v4

AdvancedSystems.Security/Common/Bytes.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static string ToString(this byte[] array, Format format)
4949
/// This method exposes the internal state of <see cref="SecureString"/> through marshaling.
5050
/// It is no longer recommended to use the <see cref="SecureString"/> for new development on .NET Core projects.
5151
/// </remarks>
52-
/// <exception cref="ArgumentNullException">Raised if <paramref name="secureString"/> is <seealso cref="null"/>.</exception>
52+
/// <exception cref="ArgumentNullException">Raised if <paramref name="secureString"/> is <c>null</c>.</exception>
5353
/// <seealso href="https://github.com/dotnet/platform-compat/blob/master/docs/DE0001.md"/>
5454
[Obsolete]
5555
public static byte[] GetBytes(this SecureString secureString, Encoding? encoding = null)

AdvancedSystems.Security/Cryptography/Hash.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ namespace AdvancedSystems.Security.Cryptography;
77
/// <summary>
88
/// Implements cryptographic hash algorithms.
99
/// </summary>
10-
/// <remarks>
11-
/// Use the <see cref="Bytes.AreEqual(byte[], byte[])"/> function for hash comparisons.
12-
/// </remarks>
1310
public static class Hash
1411
{
1512
[MethodImpl(MethodImplOptions.AggressiveInlining)]

docs/docfx.json

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"metadata": [
3+
{
4+
"src": [
5+
{
6+
"src": "../AdvancedSystems.Security",
7+
"files": [
8+
"**/*.csproj"
9+
]
10+
}
11+
],
12+
"dest": "api",
13+
"disableGitFeatures": false,
14+
"disableDefaultFilter": false
15+
}
16+
],
17+
"build": {
18+
"content": [
19+
{
20+
"files": [
21+
"**/*.{md,yml}"
22+
],
23+
"exclude": [
24+
"_site/**"
25+
]
26+
}
27+
],
28+
"resource": [
29+
{
30+
"files": [
31+
"images/**"
32+
]
33+
}
34+
],
35+
"output": "_site",
36+
"template": [
37+
"default",
38+
"modern"
39+
],
40+
"globalMetadata": {
41+
"_appName": "AdvancedSystems.Security",
42+
"_appTitle": "AdvancedSystems.Security",
43+
"_appFaviconPath": "images/favicon.svg",
44+
"_appLogoPath": "images/adv-logo-brand.svg",
45+
"_appFooter": "Copyright © Advanced Systems 2024",
46+
"_disableContribution": false,
47+
"_gitContribute": {
48+
"repo": "https://github.com/Advanced-Systems/security"
49+
},
50+
"_enableSearch": true,
51+
"pdf": false
52+
}
53+
}
54+
}

docs/docs/changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Changelog
2+
3+
TODO

docs/docs/getting-started.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Getting Started
2+
3+
TODO

docs/docs/introduction.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Introduction
2+
3+
TODO

docs/docs/toc.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
- name: Introduction
2+
href: introduction.md
3+
- name: Getting Started
4+
href: getting-started.md
5+
- name: Changelog
6+
href: changelog.md

docs/images/adv-logo-brand.svg

Lines changed: 1 addition & 0 deletions
Loading

docs/images/favicon.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)