diff --git a/.github/workflows/docgen.yml b/.github/workflows/docgen.yml new file mode 100644 index 0000000..8e82bbb --- /dev/null +++ b/.github/workflows/docgen.yml @@ -0,0 +1,30 @@ +name: docgen + +on: + push: + branches: + - master + +jobs: + docgen: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-go@v2 + with: + go-version: '^1.17.1' + - name: Install md2vim + run: go get github.com/FooSoft/md2vim + - name: Generate vim docs + run: make docs + - name: Commit changes + env: + COMMIT_MSG: | + [docgen] Update doc/neogen.txt + skip-checks: true + run: | + git config user.name github-actions + git config user.email github-actions@github.com + git add doc/neogen.txt + # Only commit and push if we have changes + git diff --quiet && git diff --staged --quiet || (git commit -m "${COMMIT_MSG}"; git push) diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..eb9e3a5 --- /dev/null +++ b/Makefile @@ -0,0 +1,2 @@ +docs: + md2vim -desc "*neogen* *neogen.nvim*\n* NOTE: This file is autogenerated from docs/DOCS.md file" docs/DOCS.md doc/neogen.txt diff --git a/docs/DOCS.md b/docs/DOCS.md new file mode 100644 index 0000000..e601e59 --- /dev/null +++ b/docs/DOCS.md @@ -0,0 +1 @@ +salut