This repository was archived by the owner on Jun 1, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed
Sources/swift-doc/Subcommands Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
21
21
- Changed README to clarify use of ` swift-doc ` vs. ` swift doc `
22
22
on the command line.
23
23
#89 by @mattt .
24
+ - Changed the ` generate ` command to emit a warning if no source
25
+ files are found.
26
+ #92 by @heckj
24
27
25
28
### Fixed
26
29
@@ -30,6 +33,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
30
33
#62 by @victor-pavlychko .
31
34
- Fixed rendering of protocol requirements in the HTML version.
32
35
#76 by @victor-pavlychko .
36
+ - Fixed default location of sources reference in README
37
+ #92 by @heckj
33
38
34
39
## [ 1.0.0-beta.2] - 2020-04-08
35
40
Original file line number Diff line number Diff line change @@ -238,7 +238,7 @@ jobs:
238
238
- name : Generate Documentation
239
239
uses : SwiftDocOrg/swift-doc@master
240
240
with :
241
- inputs : " Source "
241
+ inputs : " Sources "
242
242
module-name : MyLibrary
243
243
output : " Documentation"
244
244
- name : Upload Documentation to Wiki
Original file line number Diff line number Diff line change @@ -72,7 +72,10 @@ extension SwiftDoc {
72
72
pages [ path ( for: name) ] = GlobalPage ( module: module, name: name, symbols: symbols)
73
73
}
74
74
75
- guard !pages. isEmpty else { return }
75
+ guard !pages. isEmpty else {
76
+ logger. warning ( " No public API symbols were found at the specified path. No output was written. " )
77
+ return
78
+ }
76
79
77
80
if pages. count == 1 , let page = pages. first? . value {
78
81
let filename : String
You can’t perform that action at this time.
0 commit comments