Skip to content

Commit 2433a31

Browse files
committed
Fix DocFX glob patterns and use string literal for config section
- Use standard api/**/*.yml and articles/**/*.md glob patterns - Use string literal "GotenbergSharpClient" instead of nameof() in docs examples for clearer copy-paste usage
1 parent 207a219 commit 2433a31

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/articles/getting-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ dotnet add package Gotenberg.Sharp.Api.Client
5353
public void ConfigureServices(IServiceCollection services)
5454
{
5555
services.AddOptions<GotenbergSharpClientOptions>()
56-
.Bind(Configuration.GetSection(nameof(GotenbergSharpClient)));
56+
.Bind(Configuration.GetSection("GotenbergSharpClient"));
5757
services.AddGotenbergSharpClient();
5858
}
5959
```
@@ -95,7 +95,7 @@ services.AddGotenbergSharpClient();
9595

9696
```csharp
9797
services.AddOptions<GotenbergSharpClientOptions>()
98-
.Bind(Configuration.GetSection(nameof(GotenbergSharpClient)))
98+
.Bind(Configuration.GetSection("GotenbergSharpClient"))
9999
.PostConfigure(options =>
100100
{
101101
options.BasicAuthUsername = Environment.GetEnvironmentVariable("GOTENBERG_USER");

docs/docfx.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
"build": {
1717
"content": [
1818
{
19-
"files": ["api/**.yml", "api/index.md"]
19+
"files": ["api/**/*.yml", "api/index.md"]
2020
},
2121
{
2222
"files": [
23-
"articles/**.md",
23+
"articles/**/*.md",
2424
"articles/**/toc.yml",
2525
"toc.yml",
2626
"*.md"

0 commit comments

Comments
 (0)