Skip to content

Commit 28258e2

Browse files
authored
Specify default code listing language for DocC catalog (#85)
### Motivation Resolves #20 ### Modifications - Added `CDDefaultCodeListingLanguage` to info.plist - Updated ambiguous language highlightings ### Result Swift code blocks no longer needs to be explicitly marked as such. ### Test Plan Files inside the docc archive - Tested and verified with both explicit and non-explicit swift markings. Files outside the docc archive - TBD
1 parent 1c07b5d commit 28258e2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Sources/swift-openapi-generator/Documentation.docc/Articles/Configuring-the-generator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The configuration file is named `openapi-generator-config.yaml` or `openapi-gene
1414

1515
> In the following tutorial, we will use `openapi-generator-config.yaml` as an example.
1616
17-
```
17+
```text
1818
.
1919
├── Package.swift
2020
└── Sources

Sources/swift-openapi-generator/Documentation.docc/Info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5+
<key>CDDefaultCodeListingLanguage</key>
6+
<string>swift</string>
57
<key>CFBundleName</key>
68
<string>swift-openapi-generator</string>
79
<key>CFBundleDisplayName</key>

0 commit comments

Comments
 (0)