You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/SwiftDocC/Infrastructure/DocumentationBundle.swift
+52-36Lines changed: 52 additions & 36 deletions
Original file line number
Diff line number
Diff line change
@@ -10,20 +10,30 @@
10
10
11
11
import Foundation
12
12
13
-
/**
14
-
A documentation bundle.
15
-
16
-
A documentation bundle stores all of the authored content and metadata for a collection of topics and/or frameworks.
17
-
18
-
No content data is immediately loaded when creating a `DocumentationBundle` except for its `Info.plist`. Its purpose is to provide paths on disk for documentation resources.
19
-
20
-
## Topics
21
-
### Bundle Metadata
22
-
23
-
- ``displayName``
24
-
- ``identifier``
25
-
- ``version``
26
-
*/
13
+
/// A collection of the build inputs for a unit of documentation.
14
+
///
15
+
/// A unit of documentation may for example cover a framework, library, or tool.
16
+
/// Projects or packages may have multiple units of documentation to represent the different consumable products in that project or package.
17
+
///
18
+
/// ## Topics
19
+
///
20
+
/// ### Input files
21
+
///
22
+
/// - ``markupURLs``
23
+
/// - ``symbolGraphURLs``
24
+
/// - ``miscResourceURLs``
25
+
///
26
+
/// ### Render customization
27
+
///
28
+
/// - ``customHeader``
29
+
/// - ``customFooter``
30
+
/// - ``themeSettings``
31
+
///
32
+
/// ### Metadata
33
+
///
34
+
/// - ``info``
35
+
/// - ``displayName``
36
+
/// - ``identifier``
27
37
publicstructDocumentationBundle{
28
38
publicenumPropertyListError:DescribedError{
29
39
case invalidVersionString(String)
@@ -39,21 +49,17 @@ public struct DocumentationBundle {
39
49
}
40
50
}
41
51
42
-
/// Information about this documentation bundle that's unrelated to its documentation content.
52
+
/// Non-content information or metadata about this unit of documentation.
43
53
publicletinfo:Info
44
54
45
-
/**
46
-
The bundle's human-readable display name.
47
-
*/
55
+
/// A human-readable display name for this unit of documentation.
48
56
publicvardisplayName:String{
49
57
info.displayName
50
58
}
51
59
52
-
/**
53
-
The documentation bundle identifier.
54
-
55
-
An identifier string that specifies the app type of the bundle. The string should be in reverse DNS format using only the Roman alphabet in upper and lower case (A–Z, a–z), the dot (“.”), and the hyphen (“-”).
56
-
*/
60
+
/// A identifier for this unit of documentation
61
+
///
62
+
/// The string is typically in reverse DNS format using only the Roman alphabet in upper and lower case (A–Z, a–z), the dot (“.”), and the hyphen (“-”).
57
63
publicvaridentifier:String{
58
64
info.identifier
59
65
}
@@ -72,13 +78,25 @@ public struct DocumentationBundle {
72
78
@available(*, deprecated, message:"This deprecated API will be removed after 6.1 is released")
0 commit comments