ci: add a github action to lint and test PRs #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docs | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
doc: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Neovim | |
uses: rhysd/action-setup-vim@v1 | |
with: | |
neovim: true | |
- name: panvimdoc | |
uses: kdheepak/[email protected] | |
with: | |
vimdoc: git-dev | |
inputFile: README.md | |
toc: true | |
vimVersion: "Neovim verion 0.9" | |
description: "" | |
demojify: true | |
treesitter: true | |
shiftheadinglevelby: -1 | |
docmapping: true | |
- name: Generate help tags | |
run: nvim --headless --clean -c "helptags doc/" -c qa | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "doc: auto generate" | |
branch: ${{ github.head_ref }} | |
file_pattern: doc |