Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make doc gen CI work in pull requests #28

Merged
merged 4 commits into from
May 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions .github/workflows/panvimdoc.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
name: Auto-generate Vimdoc using Pandoc
name: Auto-generate Vimdoc using Pandoc in CI

on:
push:
pull_request:
branches: ["main"]
paths:
- README.md
- .github/**

# Set permissions of the GITHUB_TOKEN to allow modifications to files
permissions:
contents: write

# Allow one concurrent deployment
concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: false

jobs:
custom_test:
docs:
runs-on: ubuntu-latest
name: pandoc to vimdoc
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Generate docs
uses: kdheepak/panvimdoc@main
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Assuming you don't have any configuration in the `.vimrc` file, it's nicer to se
Steps:
1. Get yourself a Vim of version 8+ installed and make sure to have git installed and present on your path as well
2. Create a `~/.vimrc` file (or `~/_vimrc` if you're on Windows)
3. Without such file there were sourced defaults by the Vim authors, but once it's created, we have to put them back explicitly by adding those lines in and saving changes <kbd>:w</kbd>:
3. Without such file there were sourced defaults by the Vim authors, but once it's created, we have to put them back explicitly by adding those lines in and saving changes <kbd>:w</kbd>:

```vim
unlet! skip_defaults_vim
Expand Down
Loading