forked from SwiftDocOrg/swift-doc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
50 lines (47 loc) · 1.27 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: "Swift Doc"
description: "Generates documentation for your Swift project"
inputs:
inputs:
description: "A path to a directory containing Swift (`.swift`) files in your workspace"
required: true
default: "./Sources"
module-name:
description: "The name of the module"
required: true
format:
description: "The output format (commonmark or html)"
required: false
default: "commonmark"
base-url:
description: "The base URL for all relative URLs generated in documents"
required: false
default: "./"
output:
description: "The path for generated output"
required: true
default: "./.build/documentation"
minimum-access-level:
description: "The minimum access level of the symbols which should be included (public, internal, or private)"
required: false
default: "public"
runs:
using: "docker"
image: "docker://swiftdoc/swift-doc:latest"
args:
[
generate,
"${{ inputs.inputs }}",
--format,
"${{ inputs.format }}",
--base-url,
"${{ inputs.base-url }}",
--module-name,
"${{ inputs.module-name }}",
--output,
"${{ inputs.output }}",
--minimum-access-level,
"${{ inputs.minimum-access-level }}"
]
branding:
icon: "book"
color: "orange"