Skip to content

Commit

Permalink
docs: Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kdheepak authored Jul 2, 2024
1 parent 69d9529 commit 938a5c1
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,21 @@ vimdoc.

# TLDR

1. Choose a name for your project, i.e. `__VIMDOC_PROJECT_NAME_HERE__`. See
[.github/workflows/panvimdoc.yml](./.github/workflows/panvimdoc.yml) as an example.
2. Add the following to `./.github/workflows/panvimdoc.yml`:
1. Add the following to `./.github/workflows/panvimdoc.yml`:

```yaml
name: panvimdoc

on: [push]


on:
push:
branches: [main]
paths:
- README.md
- .github/workflows/panvimdoc.yml

permissions:
contents: write

jobs:
docs:
runs-on: ubuntu-latest
Expand All @@ -31,14 +37,14 @@ vimdoc.
- uses: actions/checkout@v2
- uses: kdheepak/panvimdoc@main
with:
vimdoc: __VIMDOC_PROJECT_NAME_HERE__
vimdoc: ${{ github.event.repository.name }}
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Auto generate docs"
branch: ${{ github.head_ref }}
```
3. `README.md` gets converted to `./doc/__VIMDOC_PROJECT_NAME_HERE__.txt` and auto-committed to the repo.
2. `README.md` gets converted to `./doc/${{ github.event.repository.name }}.txt` and auto-committed to the repo.

# Usage

Expand Down

0 comments on commit 938a5c1

Please sign in to comment.