Skip to content

Commit cf34a4f

Browse files
committed
Use DocumentationBundle.Identifier for registeredCustomScripts
1 parent 1964f86 commit cf34a4f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Sources/SwiftDocC/Infrastructure/DocumentationContext.swift

+7-7
Original file line numberDiff line numberDiff line change
@@ -1841,7 +1841,7 @@ public class DocumentationContext {
18411841
}
18421842
}
18431843

1844-
/// Returns a list of all the image assets that registered for a given `bundleIdentifier`.
1844+
/// Returns a list of all the image assets that registered for a given `bundleID`.
18451845
///
18461846
/// - Parameter bundleID: The identifier of the bundle to return image assets for.
18471847
/// - Returns: A list of all the image assets for the given bundle.
@@ -1854,7 +1854,7 @@ public class DocumentationContext {
18541854
registeredImageAssets(for: DocumentationBundle.Identifier(rawValue: bundleIdentifier))
18551855
}
18561856

1857-
/// Returns a list of all the video assets that registered for a given `bundleIdentifier`.
1857+
/// Returns a list of all the video assets that registered for a given `bundleID`.
18581858
///
18591859
/// - Parameter bundleID: The identifier of the bundle to return video assets for.
18601860
/// - Returns: A list of all the video assets for the given bundle.
@@ -1867,7 +1867,7 @@ public class DocumentationContext {
18671867
registeredVideoAssets(for: DocumentationBundle.Identifier(rawValue: bundleIdentifier))
18681868
}
18691869

1870-
/// Returns a list of all the download assets that registered for a given `bundleIdentifier`.
1870+
/// Returns a list of all the download assets that registered for a given `bundleID`.
18711871
///
18721872
/// - Parameter bundleID: The identifier of the bundle to return download assets for.
18731873
/// - Returns: A list of all the download assets for the given bundle.
@@ -1880,12 +1880,12 @@ public class DocumentationContext {
18801880
registeredDownloadsAssets(for: DocumentationBundle.Identifier(rawValue: bundleIdentifier))
18811881
}
18821882

1883-
/// Returns a list of all the custom scripts that registered for a given `bundleIdentifier`.
1883+
/// Returns a list of all the custom scripts that registered for a given `bundleID`.
18841884
///
1885-
/// - Parameter bundleIdentifier: The identifier of the bundle to return download assets for.
1885+
/// - Parameter bundleID: The identifier of the bundle to return custom scripts for.
18861886
/// - Returns: A list of all the custom scripts for the given bundle.
1887-
public func registeredCustomScripts(forBundleID bundleIdentifier: BundleIdentifier) -> [DataAsset] {
1888-
return registeredAssets(withExtensions: DocumentationContext.supportedScriptExtensions, forBundleID: bundleIdentifier)
1887+
public func registeredCustomScripts(for bundleID: DocumentationBundle.Identifier) -> [DataAsset] {
1888+
return registeredAssets(withExtensions: DocumentationContext.supportedScriptExtensions, forBundleID: bundleID)
18891889
}
18901890

18911891
typealias Articles = [DocumentationContext.SemanticResult<Article>]

Sources/SwiftDocCUtilities/Action/Actions/Convert/ConvertFileWritingConsumer.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ struct ConvertFileWritingConsumer: ConvertOutputConsumer {
129129
}
130130

131131
// Copy all registered custom scripts to the output directory.
132-
for customScript in context.registeredCustomScripts(forBundleID: bundleIdentifier) {
132+
for customScript in context.registeredCustomScripts(for: bundleID) {
133133
try copyAsset(customScript, to: scriptsDirectory)
134134
}
135135

0 commit comments

Comments
 (0)