diff --git a/.github/workflows/docgen.yml b/.github/workflows/docgen.yml index 2e28971..2dbb717 100644 --- a/.github/workflows/docgen.yml +++ b/.github/workflows/docgen.yml @@ -10,11 +10,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 + - name: Install Mini.nvim + uses: actions/checkout@v2 with: - go-version: '^1.17.1' - - name: Install md2vim - run: go get github.com/FooSoft/md2vim + repository: echasnovski/mini.nvim + path: mini.nvim - name: Generate vim docs run: make documentation - name: Commit changes diff --git a/Makefile b/Makefile index 01772d3..c8c0c6b 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,2 @@ 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!" diff --git a/scripts/minimal_init.vim b/scripts/minimal_init.vim new file mode 100644 index 0000000..cd22e7b --- /dev/null +++ b/scripts/minimal_init.vim @@ -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