Skip to content

A GitHub Action that combines jazzy docs for all SwiftPM products

License

Notifications You must be signed in to change notification settings

callummccoll/swifty-docs-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

159 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwiftPM Jazzy Docs

Tests

This action generates and combines jazzy docs for all products of a Swift package.

Inputs

source

The path to the Swift package.
Default: ${{github.workspace}}.

module-version

The version to use when generating the docs.

output

The path to the output folder.

clean

Whether a previous output should be removed before generating docs.
Default: false

xcodebuild-destination

Tells the action to use xcodebuild (instead of swift build) and passes the value as -destination to xcodebuild. This parameter can be useful if a package is e.g. iOS only. Note that currently, swifty-docs-action creates docs for the unique set of targets of all the defined products in the SwiftPM package. Thus, there are a set of requirements that go along with the xcodebuild-destination parameter:

  • All targets that are referenced by a product must have a corresponding scheme. This can either happen by Xcode's automatic scheme generation, or manually (in which case the .swiftpm must be commited to the repository).
  • The xcodebuild-destination is applied as -destination to all builds. Selectively controlling this might come in a future update.

Note that this parameter is only respected when run on macOS.

Example Usage

Use the following snippet in a Swift package repository to generate jazzy docs for all products of your Swift package:

uses: sersoft-gmbh/swifty-docs-action@v1
with:
  # Optional. Defaults to ${{github.workspace}}.
  source: ${{github.workspace}}
  # Optional. E.g. run this action on tags and use the tag name.
  module-version: 1.2.3
  # Optional.
  output: docs
  # Optional. Defaults to true.
  clean: true

About

A GitHub Action that combines jazzy docs for all SwiftPM products

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 69.3%
  • Swift 21.7%
  • Shell 9.0%