Skip to content

Commit 4fae266

Browse files
committed
Update the skip message with an action for creating your own documentation for a target
1 parent 4ec8278 commit 4fae266

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Commands/PackageCommands/GenerateDocumentation.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ struct GenerateDocumentation: AsyncSwiftCommand {
270270
}
271271

272272
guard doccCatalogDir != nil || symbolGraphDir != nil else {
273-
print("Skipping \(product.name) because there is no DocC catalog and there is no symbol graph that could be generated for it.")
273+
print("Skipping \(product.name) because there is no DocC catalog and there is no symbol graph that could be generated for it. You can add your own documentation for this executable product by adding a documentation directory with the '.docc' file extension and your own DocC formatted markdown files in the module for this product.")
274274
continue
275275
}
276276

@@ -310,7 +310,7 @@ struct GenerateDocumentation: AsyncSwiftCommand {
310310
}
311311

312312
guard doccCatalogDir != nil || swiftCommandState.fileSystem.exists(symbolGraphPath) else {
313-
print("Skipping \(module.name) because there is no DocC catalog and there is no symbol graph that could be generated for it.")
313+
print("Skipping \(module.name) because there is no DocC catalog and there is no symbol graph that could be generated for it. You can write your own documentation for this target by creating a directory with a '.docc' file extension and adding DocC formatted markdown files.")
314314
continue
315315
}
316316

0 commit comments

Comments
 (0)