Skip to content

Commit f413535

Browse files
authored
Merge pull request #34 from PTCInc/23-feat-doc-1_0_0-release-documentation-updates
Feat(doc): 1.0.0 release documentation updates
2 parents 969e0cf + 96ec3b6 commit f413535

29 files changed

Lines changed: 466 additions & 100 deletions

.github/workflows/docfx-build-and-push.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Your GitHub workflow file under .github/workflows/
22
# Trigger the action on push to main
3-
name: Docfx Builder
3+
name: Docfx Builder and Publisher for Web Pages
44

55
on:
66
workflow_dispatch:
@@ -12,7 +12,7 @@ on:
1212
- 'KepwareSync.Service/**'
1313
- 'docs/docfx/**'
1414
- '.github/workflows/dotnet.yml'
15-
- '!**/*.md' # Exclude markdown files
15+
# - '!**/*.md' Exclude markdown files
1616
# pull_request:
1717
# branches: [ "main" ]
1818
# paths:
@@ -53,10 +53,14 @@ jobs:
5353
uses: actions/setup-dotnet@v4
5454
with:
5555
dotnet-version: 8.x
56+
# Updates repo README.md to be index page for website
5657
- name: Modify markdown file to be index page
5758
run: |
5859
sed -i '1i ---\noutputFileName: index.html\n---' ./README.md
59-
- run: cp ./README.md ./docs/docfx/
60+
# Copys markdown files to docfx folder to be used in docfx build
61+
- name: Run markdown copy script
62+
run: ./docs/docfx/copy_md_files.ps1
63+
# - run: cp ./README.md ./docs/docfx/
6064
- run: dotnet tool update -g docfx
6165
- run: docfx ./docs/docfx/docfx.json
6266

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
# Custom ignore files
77
docs/docfx/api/
88
docs/docfx/_*
9+
docs/docfx/Kepware*
10+
docs/docfx/*.md
911

1012
# User-specific files
1113
*.rsuser

Kepware-ConfigAPI-SDK-dotnet.sln

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SolutionFiles", "SolutionFi
1010
.copilot.json = .copilot.json
1111
.dockerignore = .dockerignore
1212
.gitignore = .gitignore
13+
.runsettings = .runsettings
1314
Directory.Build.props = Directory.Build.props
1415
LICENSE.txt = LICENSE.txt
1516
README.md = README.md
@@ -37,16 +38,23 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Kepware.Api.Test", "Kepware
3738
EndProject
3839
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{8BD77CD2-2CB2-4EBE-B806-C4A5C8321DF1}"
3940
ProjectSection(SolutionItems) = preProject
41+
docs\nuget-README.md = docs\nuget-README.md
4042
docs\repo-guidelines.md = docs\repo-guidelines.md
4143
EndProjectSection
4244
EndProject
4345
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docfx", "docfx", "{EF3D2F75-E504-4800-A182-6BFB98C31225}"
4446
ProjectSection(SolutionItems) = preProject
47+
docs\docfx\copy_md_files.ps1 = docs\docfx\copy_md_files.ps1
4548
docs\docfx\docfx.json = docs\docfx\docfx.json
4649
docs\docfx\README.md = docs\docfx\README.md
4750
docs\docfx\toc.yml = docs\docfx\toc.yml
4851
EndProjectSection
4952
EndProject
53+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{457CB96C-D60B-4994-B87C-BCDBF4035D58}"
54+
ProjectSection(SolutionItems) = preProject
55+
docs\docfx\docs\toc.yml = docs\docfx\docs\toc.yml
56+
EndProjectSection
57+
EndProject
5058
Global
5159
GlobalSection(SolutionConfigurationPlatforms) = preSolution
5260
Debug|Any CPU = Debug|Any CPU
@@ -77,6 +85,7 @@ Global
7785
{F0A34611-31AD-4698-A368-4D65F9A0F9D9} = {A904D930-41F6-4016-A8BE-AED91D9E5B26}
7886
{8BD77CD2-2CB2-4EBE-B806-C4A5C8321DF1} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8}
7987
{EF3D2F75-E504-4800-A182-6BFB98C31225} = {8BD77CD2-2CB2-4EBE-B806-C4A5C8321DF1}
88+
{457CB96C-D60B-4994-B87C-BCDBF4035D58} = {EF3D2F75-E504-4800-A182-6BFB98C31225}
8089
EndGlobalSection
8190
GlobalSection(ExtensibilityGlobals) = postSolution
8291
SolutionGuid = {B60B443A-DDB4-4D93-AF9F-547702A8492E}

Kepware.Api.Sample/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ static async Task Main(string[] args)
1919
name: "sample",
2020
baseUrl: "https://localhost:57512",
2121
apiUserName: "Administrator",
22-
apiPassword: "InrayTkeDocker2024!",
22+
apiPassword: "ReallyStrongPassword400!",
2323
disableCertificateValidation: true
2424
);
2525
})

Kepware.Api.Sample/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ static async Task Main(string[] args)
8989
```
9090

9191
## Licensing
92-
This sample project is provided "as is" under the MIT License. See the [LICENSE](./LICENSE.txt) file for details.
92+
This sample project is provided "as is" under the MIT License. See the [LICENSE](../LICENSE.txt) file for details.
9393

9494
## Support
9595
For any issues, please open an Issue within the repository. For questions or feature requests, please open a Discussion thread within the repository.
9696

97-
See [Repository Guidelines](./docs/repo-guidelines.md) for more information.
97+
See [Repository Guidelines](../docs/repo-guidelines.md) for more information.

Kepware.Api/ClientHandler/AdminApiHandler.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,19 @@
1414

1515
namespace Kepware.Api.ClientHandler
1616
{
17+
/// <summary>
18+
/// Handles operations related to administrative settings and configurations in the Kepware server.
19+
/// </summary>
1720
public class AdminApiHandler
1821
{
1922
private readonly KepwareApiClient m_kepwareApiClient;
2023
private readonly ILogger<AdminApiHandler> m_logger;
2124

25+
/// <summary>
26+
/// Initializes a new instance of the <see cref="AdminApiHandler"/> class.
27+
/// </summary>
28+
/// <param name="kepwareApiClient">The Kepware Configuration API client.</param>
29+
/// <param name="logger">The logger instance.</param>
2230
public AdminApiHandler(KepwareApiClient kepwareApiClient, ILogger<AdminApiHandler> logger)
2331
{
2432
m_kepwareApiClient = kepwareApiClient;

Kepware.Api/ClientHandler/ChannelApiHandler.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
namespace Kepware.Api.ClientHandler
1010
{
11+
/// <summary>
12+
/// Handles operations related to channel configurations in the Kepware server.
13+
/// </summary>
1114
public class ChannelApiHandler
1215
{
1316
private readonly KepwareApiClient m_kepwareApiClient;
@@ -16,15 +19,14 @@ public class ChannelApiHandler
1619
/// <summary>
1720
/// Initializes a new instance of the <see cref="ChannelApiHandler"/> class.
1821
/// </summary>
19-
/// <param name="kepwareApiClient">The Kepware API client.</param>
22+
/// <param name="kepwareApiClient">The Kepware Configuration API client.</param>
2023
/// <param name="logger">The logger instance.</param>
2124
public ChannelApiHandler(KepwareApiClient kepwareApiClient, ILogger<ChannelApiHandler> logger)
2225
{
2326
m_kepwareApiClient = kepwareApiClient;
2427
m_logger = logger;
2528
}
2629

27-
#region Channels
2830
#region GetOrCreateChannelAsync
2931
/// <summary>
3032
/// Gets or creates a channel with the specified name and driver.
@@ -153,6 +155,5 @@ public Task<bool> DeleteChannelAsync(string channelName, CancellationToken cance
153155
return m_kepwareApiClient.GenericConfig.DeleteItemAsync<Channel>(channelName, cancellationToken: cancellationToken);
154156
}
155157
#endregion
156-
#endregion
157158
}
158159
}

Kepware.Api/ClientHandler/DeviceApiHandler.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99

1010
namespace Kepware.Api.ClientHandler
1111
{
12+
/// <summary>
13+
/// Handles operations related to device configurations in the Kepware server.
14+
/// </summary>
1215
public class DeviceApiHandler
1316
{
1417
private readonly KepwareApiClient m_kepwareApiClient;

0 commit comments

Comments
 (0)