@@ -2,44 +2,33 @@ name: vimdoc
2
2
3
3
on :
4
4
push :
5
- branches :
6
- - main
5
+ branches : [main, vimdoc]
7
6
8
7
jobs :
9
8
generate-docs :
10
9
runs-on : [ubuntu-latest]
11
10
steps :
12
- - uses : actions/checkout@v3
11
+ - uses : actions/checkout@v4
13
12
with :
14
13
fetch-depth : 0
15
- - run : date +%F > todays-date
16
- - name : Restore cache for today's nightly.
17
- uses : actions/cache@v3
14
+ - uses : rhysd/action-setup-vim@v1
18
15
with :
19
- path : build
20
- key : ${{ runner.os }}-appimage-${{ hashFiles('todays-date') }}
21
- - name : Install FUSE
22
- run : sudo apt-get install -y libfuse2
23
- - name : Setup neovim nightly and install plugins
16
+ neovim : true
17
+ version : v0.10.3
18
+ - name : Setup treesitter
24
19
run : |
25
- test -d build || {
26
- mkdir -p build
27
- wget https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage
28
- chmod +x nvim.appimage
29
- mv nvim.appimage ./build/nvim
30
- }
31
20
mkdir -p ~/.local/share/nvim/site/pack/vendor/start
32
21
git clone --depth 1 https://github.com/ibhagwan/ts-vimdoc.nvim ~/.local/share/nvim/site/pack/vendor/start/ts-vimdoc.nvim
33
22
git clone --depth 1 https://github.com/nvim-treesitter/nvim-treesitter ~/.local/share/nvim/site/pack/vendor/start/nvim-treesitter
34
23
- name : Build parser
35
24
run : |
36
25
export PACKPATH=$HOME/.local/share/nvim/site
37
- ./build/ nvim --headless -u ~/.local/share/nvim/site/pack/vendor/start/ts-vimdoc.nvim/scripts/init.lua -c "TSUpdateSync markdown" -c "TSUpdateSync markdown_inline" -c "qa"
26
+ nvim --headless -u ~/.local/share/nvim/site/pack/vendor/start/ts-vimdoc.nvim/scripts/init.lua -c "TSUpdateSync markdown" -c "TSUpdateSync markdown_inline" -c "qa"
38
27
- name : Generating docs
39
28
run : |
40
29
export PATH="${PWD}/build/:${PATH}"
41
30
export PACKPATH=$HOME/.local/share/nvim/site
42
- ./build/ nvim --headless -u ~/.local/share/nvim/site/pack/vendor/start/ts-vimdoc.nvim/scripts/init.lua -c "lua require('ts-vimdoc').docgen({input_file='README.md', output_file='doc/fzf-lua.txt', project_name='fzf-lua', version='For Neovim >= 0.5 .0'})" -c "qa"
31
+ nvim --headless -u ~/.local/share/nvim/site/pack/vendor/start/ts-vimdoc.nvim/scripts/init.lua -c "lua require('ts-vimdoc').docgen({input_file='README.md', output_file='doc/fzf-lua.txt', project_name='fzf-lua', version='For Neovim >= 0.7 .0'})" -c "qa"
43
32
- name : Commit changes
44
33
env :
45
34
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments