feat: Update docgen to use mini.nvim documentation generator
This commit is contained in:
8
.github/workflows/docgen.yml
vendored
8
.github/workflows/docgen.yml
vendored
@@ -10,11 +10,11 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-go@v2
|
- name: Install Mini.nvim
|
||||||
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
go-version: '^1.17.1'
|
repository: echasnovski/mini.nvim
|
||||||
- name: Install md2vim
|
path: mini.nvim
|
||||||
run: go get github.com/FooSoft/md2vim
|
|
||||||
- name: Generate vim docs
|
- name: Generate vim docs
|
||||||
run: make documentation
|
run: make documentation
|
||||||
- name: Commit changes
|
- name: Commit changes
|
||||||
|
|||||||
2
Makefile
2
Makefile
@@ -1,2 +1,2 @@
|
|||||||
documentation:
|
documentation:
|
||||||
md2vim -desc "*neogen* *neogen.nvim*\n* NOTE: This file is autogenerated from docs/DOCS.md file" docs/DOCS.md doc/neogen.txt
|
nvim --headless --noplugin -u ./scripts/minimal_init.vim -c "lua MiniDoc.generate()" -c "qa!"
|
||||||
|
|||||||
20
scripts/minimal_init.vim
Normal file
20
scripts/minimal_init.vim
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
set rtp+=.
|
||||||
|
|
||||||
|
" For test suites
|
||||||
|
set rtp+=./mini.nvim
|
||||||
|
|
||||||
|
" If you are using packer
|
||||||
|
set rtp+=~/.local/share/nvim/site/pack/packer/start/neogen
|
||||||
|
set rtp+=~/.local/share/nvim/site/pack/packer/opt/neogen
|
||||||
|
set rtp+=~/.local/share/nvim/site/pack/packer/start/mini.nvim
|
||||||
|
set rtp+=~/.local/share/nvim/site/pack/packer/opt/mini.nvim
|
||||||
|
|
||||||
|
set noswapfile
|
||||||
|
|
||||||
|
lua << EOF
|
||||||
|
P = function(...)
|
||||||
|
print(vim.inspect(...))
|
||||||
|
end
|
||||||
|
|
||||||
|
require("mini.doc").setup({})
|
||||||
|
EOF
|
||||||
Reference in New Issue
Block a user