Skip to content

Commit

Permalink
Reformat docs (nvim-orgmode#737)
Browse files Browse the repository at this point in the history
* chore: reformat markdown files

* chore: ignore vim helptags

Help tags get auto-generated bei Neovim.

* docs: replace md2vim with panvimdoc in ci pipeline

* fixup! docs: replace md2vim with panvimdoc in ci pipeline

---------

Co-authored-by: Sebastian Flügge <seflue@users.noreply.github.com>
  • Loading branch information
seflue and seflue authored May 29, 2024
1 parent 8fce0cf commit 3145a85
Show file tree
Hide file tree
Showing 6 changed files with 981 additions and 636 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/docgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ jobs:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN }}
- uses: actions/setup-go@v5
with:
go-version: '^1.17.1'
- name: Install md2vim
run: go install git.foosoft.net/alex/md2vim@latest
- name: Install Neovim
uses: rhysd/action-setup-vim@v1
id: neovim
Expand All @@ -30,7 +25,10 @@ jobs:
- name: Generate api docs
run: make api_docs
- name: Generate vim docs
run: make docs
uses: kdheepak/panvimdoc@main
with:
vimdoc: orgmode
pandoc: 'DOCS.md'
- name: Commit changes
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,6 @@ luac.out

# Directory containing testing dependencies downloaded during test run
.deps/

# Auto-generated vim helptags
doc/tags
5 changes: 4 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ If you spot something missing in our [docs](DOCS.md), don't hesitate making a PR
## Local dev

Requirements:

- [StyLua](https://github.com/JohnnyMorganz/StyLua) - For formatting

To set up local development, run `make setup_dev`. This will add a pre-commit hook that will auto format all files before committing them.
Expand All @@ -33,13 +34,15 @@ Please document any new code you add with [emmylua annotations](https://emmylua.

### Tests

To run tests run `make test` in the nvim-orgmode directory:
To run tests run `make test` in the nvim-orgmode directory:

```
make test
```

To run a specific test you can set a `FILE` environment variable to a specific
spec you want to test. Example:

```
make test FILE=./tests/plenary/api/api_spec.lua
```
Expand Down
Loading

0 comments on commit 3145a85

Please sign in to comment.