Skip to content

Commit e7717f2

Browse files
committed
add docs
1 parent 44a965a commit e7717f2

File tree

177 files changed

+3847
-142
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

177 files changed

+3847
-142
lines changed

.config/dotnet-tools.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88
"reportgenerator"
99
],
1010
"rollForward": false
11+
},
12+
"docfx": {
13+
"version": "2.78.5",
14+
"commands": [
15+
"docfx"
16+
],
17+
"rollForward": false
1118
}
1219
}
1320
}

.github/copilot-instructions.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# Copilot Instructions
22

33
## Project Guidelines
4-
- Use a lazy `Target` pattern from `CreateInstance<T>` when inheriting from `BaseUnitTestCase` (or `BaseUnitTestCase<T>` when accessibility allows) for test classes in this repository.
4+
- Use a lazy `Target` pattern from `CreateInstance<T>` when inheriting from `BaseUnitTestCase` (or `BaseUnitTestCase<T>` when accessibility allows) for test classes in this repository.
5+
- When modifying a public member, make sure to update the XML Documentation and the corresponding docs in the docs folder and the README file if applicable.
6+
- Do not ignore CS1591 warnings; analyze and add missing XML comments instead.
7+
8+
## Documentation Guidelines
9+
- When generating package README files, keep them short and concise, and use the docs folder for more elaborate usage patterns.

.github/workflows/docs.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Deploy DocFX to GitHub Pages
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [ "main" ]
7+
paths:
8+
- 'src/**'
9+
- 'docs/**'
10+
- '.github/workflows/docs.yml'
11+
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
concurrency:
18+
group: pages
19+
cancel-in-progress: false
20+
21+
jobs:
22+
build:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v6
26+
with:
27+
fetch-depth: 0
28+
29+
- uses: actions/setup-dotnet@v5
30+
31+
- name: Install DocFX
32+
run: dotnet tool restore
33+
34+
- name: Build documentation
35+
run: dotnet tool run docfx docs/docfx.json
36+
37+
- name: Upload artifact
38+
uses: actions/upload-pages-artifact@v3
39+
with:
40+
path: docs/_site
41+
42+
deploy:
43+
needs: build
44+
runs-on: ubuntu-latest
45+
environment:
46+
name: github-pages
47+
url: ${{ steps.deployment.outputs.page_url }}
48+
steps:
49+
- name: Deploy to GitHub Pages
50+
id: deployment
51+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,3 +363,6 @@ MigrationBackup/
363363
# Fody - auto-generated XML schema
364364
FodyWeavers.xsd
365365
/tests/html-coverage-report
366+
367+
# DocFX generated output
368+
docs/_site/

Directory.Build.props

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,17 @@
33
<TargetFramework>net10.0</TargetFramework>
44
<Nullable>enable</Nullable>
55
<ImplicitUsings>enable</ImplicitUsings>
6-
6+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
77
</PropertyGroup>
88

9+
<PropertyGroup Condition="'$(IsPackable)' != 'false' and Exists('README.md')">
10+
<PackageReadmeFile>README.md</PackageReadmeFile>
11+
</PropertyGroup>
12+
13+
<ItemGroup Condition="'$(IsPackable)' != 'false' and Exists('README.md')">
14+
<None Include="README.md" Pack="true" PackagePath="\" />
15+
</ItemGroup>
16+
917
<PropertyGroup>
1018
<Authors>Vulthil</Authors>
1119
<RepositoryType>git</RepositoryType>

Vulthil.SharedKernel.slnx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<File Path=".config/dotnet-tools.json" />
44
</Folder>
55
<Folder Name="/.github/">
6+
<File Path=".github/copilot-instructions.md" />
67
<File Path=".github/dependabot.yml" />
78
</Folder>
89
<Folder Name="/.github/instructions/">

docs/api/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
###############
2+
# Generated API metadata — rebuilt by DocFX on every run
3+
###############
4+
*.yml
5+
.manifest

docs/api/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# API Reference
2+
3+
Browse the auto-generated API documentation for the **Vulthil.SharedKernel** libraries.

docs/articles/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Articles
2+
3+
Conceptual documentation and guides for **Vulthil.SharedKernel**.

docs/articles/toc.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- name: Introduction
2+
href: index.md
3+
- name: Packages
4+
href: packages/

0 commit comments

Comments
 (0)