-
-
Notifications
You must be signed in to change notification settings - Fork 9
56 lines (49 loc) · 1.4 KB
/
vimdoc.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
name: Generate Vim Documentation
on:
push:
branches:
- main
paths:
- "README.md"
- "doc/**"
pull_request:
paths:
- "README.md"
- "doc/**"
jobs:
docs:
runs-on: ubuntu-latest
name: Generate Vim Documentation
steps:
- uses: actions/checkout@v4
- name: Install Pandoc
run: |
sudo apt-get update
sudo apt-get install -y pandoc
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install panvimdoc
run: |
pip install panvimdoc
- name: Build Documentation
run: |
mkdir -p doc
panvimdoc --input README.md \
--output doc/dooing.txt \
--project-name dooing \
--description "A Minimalist Todo List Manager for Neovim" \
--vim-version 9.0.0 \
--toc
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
commit-message: "docs: update vim documentation"
title: "docs: update vim documentation"
body: |
Auto-generated Vim documentation from README.md
- Generated using panvimdoc
- Please review the changes and merge if everything looks correct
branch: update-docs
delete-branch: true