This action generates documentation for a Swift package using docc
.
Important: The package must use the Swift-DocC Plugin unless xcodebuild
is used!
Note: As of version 2, this action uses docc
instead of jazzy
! Use @v1
to use jazzy
.
The path to the package.
Required. Defaults to ${{github.workspace}}
.
The version to use for this package.
Whether to enable inherited docs. Defaults to false
.
Enable index building. Defaults to false
.
The path to check out the package to. Defaults to the workspace (${{ github.workspace }}
).
The service to use for the repository. Must be supported by docc
(see xcrun docc convert --help
). Defaults to github
.
The base URL of the repository. Defaults to the current repository (${{ github.server_url }}/${{ github.repository }}
).
Enables the static hosting transformation. Defaults to false
.
The hosting base path to use.
Further (newline-separated) docc
arguments.
A list of targets separated by newline. If not given, all targets are built.
This is ignored if use-xcodebuild
is true
!
Tells the action to use xcodebuild
(instead of swift package
).
Use xcodebuild-scheme
and xcodebuild-destination
to further customize the xcodebuild
invocation.
Defaults to false
.
Note: This parameter is only evaluated when running on macOS.
The scheme to use for the xcodebuild
invocation. Only used if use-xcodebuild
is true
.
Note: This parameter is only evaluated when running on macOS.
The destination to use for the xcodebuild
invocation. Only used if use-xcodebuild
is true
.
Note: This parameter is only evaluated when running on macOS.
Further (newline-separated) xcodebuild
arguments.
Note: This parameter is only evaluated when running on macOS.
The path to the output directory.
Use the following snippet in a Swift package repository to generate documentation for all products of your Swift package:
uses: sersoft-gmbh/swifty-docs-action@v3
with:
output: docs