-
Notifications
You must be signed in to change notification settings - Fork 6
/
action.yml
69 lines (69 loc) · 1.98 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: 'Markdown Docs'
author: ldeluigi
description: 'Generates a documentation website from Markdown files with many extensions: https://github.com/ldeluigi/markdown-docs#readme'
branding:
icon: 'file-text'
color: 'gray-dark'
inputs:
src:
description: >
Source path.
Default: .
required: true
default: '.'
dst:
description: >
Output path.
Default: docs
required: true
default: 'docs'
language:
description: >
Language selector for mkdocs search feature and more.
Default: en
required: false
default: 'en'
icon:
description: >
One of https://materialdesignicons.com icons.
Displayed at the top left, links to the home.
Default: library
required: false
default: 'library'
primary-color:
description: >
One of red, pink, purple, deep purple, indigo, blue, light blue, cyan, teal, green,
light green, lime, yellow, amber, orange, deep orange.
Default: indigo
required: false
default: indigo
secondary-color:
description: >
One of red, pink, purple, deep purple, indigo, blue, light blue, cyan, teal, green, light green,
lime, yellow, amber, orange, deep orange.
Default: indigo
required: false
default: indigo
hide-repository:
description: >
If set to true, will generate a website that doesn't link back to the repository on GitHub. Defaults to false.
required: false
default: 'false'
title:
description: >
The title for the documentation website. Defaults to the name of the repository.
required: false
default: ${{ github.repository }}
runs:
using: 'docker'
image: 'docker://deloo/markdown-docs:0.8.2'
env:
TITLE: ${{ inputs.title }}
LANGUAGE: ${{ inputs.language }}
ICON: ${{ inputs.icon }}
PRIMARY_COLOR: ${{ inputs.primary-color }}
SECONDARY_COLOR: ${{ inputs.secondary-color }}
HIDE_REPOSITORY: ${{ inputs.hide-repository }}
args:
- ${{ inputs.src }}
- ${{ inputs.dst }}