-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathaction.yaml
94 lines (94 loc) · 2.5 KB
/
action.yaml
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# action.yml
name: "panvimdoc"
description: "Convert pandoc input to vimdoc output"
branding:
icon: file-text
color: gray-dark
inputs:
vimdoc:
description: "Output vimdoc project name"
required: true
pandoc:
description: "Input pandoc file"
required: true
default: "README.md"
version:
description: "Vim version"
required: false
default: "NVIM v0.8.0"
toc:
description: "Table of contents"
required: false
default: "true"
description:
description: "Project description used in title (if empty, uses neovim version and current date)"
required: false
default: ""
titledatepattern:
description: "Pattern for the date that used in the title (if empty, uses '%Y %B %d')"
required: false
default: "%Y %B %d"
demojify:
description: "Strip emojis from the vimdoc"
required: false
default: "false"
dedupsubheadings:
description: "Add heading to subheading links"
required: false
default: "true"
treesitter:
description: "Use treesitter for highlighting codeblocks"
required: false
default: "true"
ignorerawblocks:
description: "Ignore raw blocks when generating vimdoc"
required: false
default: "true"
docmapping:
description: "Use h4 headers as mapping docs"
required: false
default: "false"
docmappingprojectname:
description: "Use project name in tag when writing mapping docs"
required: false
default: "true"
shiftheadinglevelby:
description: "Shift heading levels by specified number"
required: false
default: "0"
incrementheadinglevelby:
description: "Increment heading levels by specified number"
required: false
default: "0"
runs:
using: "docker"
image: "Dockerfile"
args:
- --project-name
- ${{ inputs.vimdoc }}
- --input-file
- ${{ inputs.pandoc }}
- --vim-version
- ${{ inputs.version }}
- --toc
- ${{ inputs.toc }}
- --description
- ${{ inputs.description }}
- --title-date-pattern
- ${{ inputs.titledatepattern }}
- --dedup-subheadings
- ${{ inputs.dedupsubheadings }}
- --demojify
- ${{ inputs.demojify }}
- --treesitter
- ${{ inputs.treesitter }}
- --ignore-rawblocks
- ${{ inputs.ignorerawblocks }}
- --doc-mapping-project-name
- ${{ inputs.docmappingprojectname }}
- --doc-mapping
- ${{ inputs.docmapping }}
- --shift-heading-level-by
- ${{ inputs.shiftheadinglevelby }}
- --increment-heading-level-by
- ${{ inputs.incrementheadinglevelby }}