swift-openapi-generator icon indicating copy to clipboard operation
swift-openapi-generator copied to clipboard

Set Swift as the default language in the Info.plist of the docc bundles

Open czechboy0 opened this issue 1 year ago • 2 comments

Set Swift as the default language in the Info.plist of the docc bundles.

This is so that code listings use Swift syntax highlighting by default.

czechboy0 avatar May 25 '23 09:05 czechboy0

Is this about setting the CDDefaultCodeListingLanguage key to swift in the plist? If so, can we add the CDAppleDefaultAvailability to the plist as well?

denil-ct avatar Jun 20 '23 19:06 denil-ct

@denil-ct Yup, that default listing language key is what we need.

Default availability is trickier, we don't want to have to update it in multiple places, ideally docc would pick it up from the Package.swift platforms key. But you can file a separate issue tracking this, we don't want to broaden this issue.

czechboy0 avatar Jun 20 '23 21:06 czechboy0